aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2015-02-16 10:14:04 +0900
committerYAMAMOTO Mitsuharu2015-02-16 10:14:04 +0900
commit022d7cda41e8c0db381b22bef0d48671b5725e9c (patch)
treedd8b521422b0450024eea0b24b5131ae885d5dea /src
parent335ab266490fae0472f2b709ca3ecfe21c931fee (diff)
downloademacs-022d7cda41e8c0db381b22bef0d48671b5725e9c.tar.gz
emacs-022d7cda41e8c0db381b22bef0d48671b5725e9c.zip
* xterm.c (x_draw_window_divider): Use x_fill_rectangle instead of XFillRectangle.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xterm.c29
2 files changed, 19 insertions, 15 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 648544928fb..d9b24768ef7 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12015-02-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2
3 * xterm.c (x_draw_window_divider): Use x_fill_rectangle instead of
4 XFillRectangle.
5
12015-02-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 62015-02-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2 7
3 * fringe.c (init_fringe_bitmap) [USE_CAIRO]: Adjust bitmap data for 8 * fringe.c (init_fringe_bitmap) [USE_CAIRO]: Adjust bitmap data for
diff --git a/src/xterm.c b/src/xterm.c
index 49d9c32211c..04d6c061892 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -1101,39 +1101,38 @@ x_draw_window_divider (struct window *w, int x0, int x1, int y0, int y1)
1101 ? face_last->foreground 1101 ? face_last->foreground
1102 : FRAME_FOREGROUND_PIXEL (f)); 1102 : FRAME_FOREGROUND_PIXEL (f));
1103 Display *display = FRAME_X_DISPLAY (f); 1103 Display *display = FRAME_X_DISPLAY (f);
1104 Window window = FRAME_X_WINDOW (f);
1105 1104
1106 if (y1 - y0 > x1 - x0 && x1 - x0 > 2) 1105 if (y1 - y0 > x1 - x0 && x1 - x0 > 2)
1107 /* Vertical. */ 1106 /* Vertical. */
1108 { 1107 {
1109 XSetForeground (display, f->output_data.x->normal_gc, color_first); 1108 XSetForeground (display, f->output_data.x->normal_gc, color_first);
1110 XFillRectangle (display, window, f->output_data.x->normal_gc, 1109 x_fill_rectangle (f, f->output_data.x->normal_gc,
1111 x0, y0, 1, y1 - y0); 1110 x0, y0, 1, y1 - y0);
1112 XSetForeground (display, f->output_data.x->normal_gc, color); 1111 XSetForeground (display, f->output_data.x->normal_gc, color);
1113 XFillRectangle (display, window, f->output_data.x->normal_gc, 1112 x_fill_rectangle (f, f->output_data.x->normal_gc,
1114 x0 + 1, y0, x1 - x0 - 2, y1 - y0); 1113 x0 + 1, y0, x1 - x0 - 2, y1 - y0);
1115 XSetForeground (display, f->output_data.x->normal_gc, color_last); 1114 XSetForeground (display, f->output_data.x->normal_gc, color_last);
1116 XFillRectangle (display, window, f->output_data.x->normal_gc, 1115 x_fill_rectangle (f, f->output_data.x->normal_gc,
1117 x1 - 1, y0, 1, y1 - y0); 1116 x1 - 1, y0, 1, y1 - y0);
1118 } 1117 }
1119 else if (x1 - x0 > y1 - y0 && y1 - y0 > 3) 1118 else if (x1 - x0 > y1 - y0 && y1 - y0 > 3)
1120 /* Horizontal. */ 1119 /* Horizontal. */
1121 { 1120 {
1122 XSetForeground (display, f->output_data.x->normal_gc, color_first); 1121 XSetForeground (display, f->output_data.x->normal_gc, color_first);
1123 XFillRectangle (display, window, f->output_data.x->normal_gc, 1122 x_fill_rectangle (f, f->output_data.x->normal_gc,
1124 x0, y0, x1 - x0, 1); 1123 x0, y0, x1 - x0, 1);
1125 XSetForeground (display, f->output_data.x->normal_gc, color); 1124 XSetForeground (display, f->output_data.x->normal_gc, color);
1126 XFillRectangle (display, window, f->output_data.x->normal_gc, 1125 x_fill_rectangle (f, f->output_data.x->normal_gc,
1127 x0, y0 + 1, x1 - x0, y1 - y0 - 2); 1126 x0, y0 + 1, x1 - x0, y1 - y0 - 2);
1128 XSetForeground (display, f->output_data.x->normal_gc, color_last); 1127 XSetForeground (display, f->output_data.x->normal_gc, color_last);
1129 XFillRectangle (display, window, f->output_data.x->normal_gc, 1128 x_fill_rectangle (f, f->output_data.x->normal_gc,
1130 x0, y1 - 1, x1 - x0, 1); 1129 x0, y1 - 1, x1 - x0, 1);
1131 } 1130 }
1132 else 1131 else
1133 { 1132 {
1134 XSetForeground (display, f->output_data.x->normal_gc, color); 1133 XSetForeground (display, f->output_data.x->normal_gc, color);
1135 XFillRectangle (display, window, f->output_data.x->normal_gc, 1134 x_fill_rectangle (f, f->output_data.x->normal_gc,
1136 x0, y0, x1 - x0, y1 - y0); 1135 x0, y0, x1 - x0, y1 - y0);
1137 } 1136 }
1138} 1137}
1139 1138