aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlenn Morris2017-11-20 13:10:11 -0500
committerGlenn Morris2017-11-20 13:10:11 -0500
commit5f1cf4b5c7640ed747bd867712a4580bc2e5b92f (patch)
tree0114e9e8c6e49ccaaa4253fc36808bccd89a9edc /src
parent7aa59d42a72ef51e0ee902b67097983fc1bfe44c (diff)
parentfc5b8f105505b4f9bb32c5d84d685ab0bc991802 (diff)
downloademacs-5f1cf4b5c7640ed747bd867712a4580bc2e5b92f.tar.gz
emacs-5f1cf4b5c7640ed747bd867712a4580bc2e5b92f.zip
Merge from origin/emacs-26
fc5b8f1 Fix Bug#29149 5622b2e Merge branch 'emacs-26' of git.sv.gnu.org:/srv/git/emacs into... 4da8799 (emacs-26) Fix misbehavior when drawing three-pixel high hori... 1b082c8 MH-E: don't automatically download external-body parts 069f978 ; * lisp/emacs-lisp/byte-run.el: Fix a typo in a comment. 504a56c ; Fix last commit a34e44e ; Fix last commit a8892b4 Further fix for Bug#29291 d14923b Fix divider frame params on NS (bug#29352) b2518ac Spelling fixes # Conflicts: # etc/NEWS # test/lisp/net/tramp-tests.el
Diffstat (limited to 'src')
-rw-r--r--src/nsfns.m4
-rw-r--r--src/w32term.c12
-rw-r--r--src/xterm.c12
3 files changed, 20 insertions, 8 deletions
diff --git a/src/nsfns.m b/src/nsfns.m
index c8a41f5b4b0..81722681674 100644
--- a/src/nsfns.m
+++ b/src/nsfns.m
@@ -1234,6 +1234,10 @@ This function is an internal primitive--use `make-frame' instead. */)
1234 x_default_parameter (f, parms, Qinternal_border_width, make_number (2), 1234 x_default_parameter (f, parms, Qinternal_border_width, make_number (2),
1235 "internalBorderWidth", "InternalBorderWidth", 1235 "internalBorderWidth", "InternalBorderWidth",
1236 RES_TYPE_NUMBER); 1236 RES_TYPE_NUMBER);
1237 x_default_parameter (f, parms, Qright_divider_width, make_number (0),
1238 NULL, NULL, RES_TYPE_NUMBER);
1239 x_default_parameter (f, parms, Qbottom_divider_width, make_number (0),
1240 NULL, NULL, RES_TYPE_NUMBER);
1237 1241
1238 /* default vertical scrollbars on right on Mac */ 1242 /* default vertical scrollbars on right on Mac */
1239 { 1243 {
diff --git a/src/w32term.c b/src/w32term.c
index e62d49dd947..7a3b2cc631f 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -660,21 +660,25 @@ w32_draw_window_divider (struct window *w, int x0, int x1, int y0, int y1)
660 ? face_last->foreground 660 ? face_last->foreground
661 : FRAME_FOREGROUND_PIXEL (f)); 661 : FRAME_FOREGROUND_PIXEL (f));
662 662
663 if (y1 - y0 > x1 - x0 && x1 - x0 > 2) 663 if ((y1 - y0 > x1 - x0) && (x1 - x0 >= 3))
664 /* Vertical. */ 664 /* A vertical divider, at least three pixels wide: Draw first and
665 last pixels differently. */
665 { 666 {
666 w32_fill_area_abs (f, hdc, color_first, x0, y0, x0 + 1, y1); 667 w32_fill_area_abs (f, hdc, color_first, x0, y0, x0 + 1, y1);
667 w32_fill_area_abs (f, hdc, color, x0 + 1, y0, x1 - 1, y1); 668 w32_fill_area_abs (f, hdc, color, x0 + 1, y0, x1 - 1, y1);
668 w32_fill_area_abs (f, hdc, color_last, x1 - 1, y0, x1, y1); 669 w32_fill_area_abs (f, hdc, color_last, x1 - 1, y0, x1, y1);
669 } 670 }
670 else if (x1 - x0 > y1 - y0 && y1 - y0 > 3) 671 else if ((x1 - x0 > y1 - y0) && (y1 - y0 >= 3))
671 /* Horizontal. */ 672 /* A horizontal divider, at least three pixels high: Draw first and
673 last pixels differently. */
672 { 674 {
673 w32_fill_area_abs (f, hdc, color_first, x0, y0, x1, y0 + 1); 675 w32_fill_area_abs (f, hdc, color_first, x0, y0, x1, y0 + 1);
674 w32_fill_area_abs (f, hdc, color, x0, y0 + 1, x1, y1 - 1); 676 w32_fill_area_abs (f, hdc, color, x0, y0 + 1, x1, y1 - 1);
675 w32_fill_area_abs (f, hdc, color_last, x0, y1 - 1, x1, y1); 677 w32_fill_area_abs (f, hdc, color_last, x0, y1 - 1, x1, y1);
676 } 678 }
677 else 679 else
680 /* In any other case do not draw the first and last pixels
681 differently. */
678 w32_fill_area_abs (f, hdc, color, x0, y0, x1, y1); 682 w32_fill_area_abs (f, hdc, color, x0, y0, x1, y1);
679 683
680 release_frame_dc (f, hdc); 684 release_frame_dc (f, hdc);
diff --git a/src/xterm.c b/src/xterm.c
index 28abfaecde9..1deb7b46013 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -1104,8 +1104,9 @@ x_draw_window_divider (struct window *w, int x0, int x1, int y0, int y1)
1104 : FRAME_FOREGROUND_PIXEL (f)); 1104 : FRAME_FOREGROUND_PIXEL (f));
1105 Display *display = FRAME_X_DISPLAY (f); 1105 Display *display = FRAME_X_DISPLAY (f);
1106 1106
1107 if (y1 - y0 > x1 - x0 && x1 - x0 > 2) 1107 if ((y1 - y0 > x1 - x0) && (x1 - x0 >= 3))
1108 /* Vertical. */ 1108 /* A vertical divider, at least three pixels wide: Draw first and
1109 last pixels differently. */
1109 { 1110 {
1110 XSetForeground (display, f->output_data.x->normal_gc, color_first); 1111 XSetForeground (display, f->output_data.x->normal_gc, color_first);
1111 x_fill_rectangle (f, f->output_data.x->normal_gc, 1112 x_fill_rectangle (f, f->output_data.x->normal_gc,
@@ -1117,8 +1118,9 @@ x_draw_window_divider (struct window *w, int x0, int x1, int y0, int y1)
1117 x_fill_rectangle (f, f->output_data.x->normal_gc, 1118 x_fill_rectangle (f, f->output_data.x->normal_gc,
1118 x1 - 1, y0, 1, y1 - y0); 1119 x1 - 1, y0, 1, y1 - y0);
1119 } 1120 }
1120 else if (x1 - x0 > y1 - y0 && y1 - y0 > 3) 1121 else if ((x1 - x0 > y1 - y0) && (y1 - y0 >= 3))
1121 /* Horizontal. */ 1122 /* A horizontal divider, at least three pixels high: Draw first and
1123 last pixels differently. */
1122 { 1124 {
1123 XSetForeground (display, f->output_data.x->normal_gc, color_first); 1125 XSetForeground (display, f->output_data.x->normal_gc, color_first);
1124 x_fill_rectangle (f, f->output_data.x->normal_gc, 1126 x_fill_rectangle (f, f->output_data.x->normal_gc,
@@ -1132,6 +1134,8 @@ x_draw_window_divider (struct window *w, int x0, int x1, int y0, int y1)
1132 } 1134 }
1133 else 1135 else
1134 { 1136 {
1137 /* In any other case do not draw the first and last pixels
1138 differently. */
1135 XSetForeground (display, f->output_data.x->normal_gc, color); 1139 XSetForeground (display, f->output_data.x->normal_gc, color);
1136 x_fill_rectangle (f, f->output_data.x->normal_gc, 1140 x_fill_rectangle (f, f->output_data.x->normal_gc,
1137 x0, y0, x1 - x0, y1 - y0); 1141 x0, y0, x1 - x0, y1 - y0);