aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Rudalics2017-08-30 10:27:36 +0200
committerMartin Rudalics2017-08-30 10:27:36 +0200
commit9ef61c17af49886d150b938f51040ff3a1da1c80 (patch)
tree1aedcfdc5f11cc7f785af40ad01414480f75c0aa /src
parent8710d11b481f3e6ec88276e11b12665983f0468f (diff)
downloademacs-9ef61c17af49886d150b938f51040ff3a1da1c80.tar.gz
emacs-9ef61c17af49886d150b938f51040ff3a1da1c80.zip
Preserve display's foreground color when clearing internal borders (Bug#28278)
* src/xterm.c (x_after_update_window_line): Preserve display's foreground color when clearing internal borders (Bug#28278).
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/xterm.c b/src/xterm.c
index eff1519bf48..64e89708b2e 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -1382,12 +1382,13 @@ x_after_update_window_line (struct window *w, struct glyph_row *desired_row)
1382 { 1382 {
1383 unsigned long color = face->background; 1383 unsigned long color = face->background;
1384 Display *display = FRAME_X_DISPLAY (f); 1384 Display *display = FRAME_X_DISPLAY (f);
1385 GC gc = f->output_data.x->normal_gc;
1385 1386
1386 XSetForeground (display, f->output_data.x->normal_gc, color); 1387 XSetForeground (display, gc, color);
1387 x_fill_rectangle (f, f->output_data.x->normal_gc, 1388 x_fill_rectangle (f, gc, 0, y, width, height);
1388 0, y, width, height); 1389 x_fill_rectangle (f, gc, FRAME_PIXEL_WIDTH (f) - width, y,
1389 x_fill_rectangle (f, f->output_data.x->normal_gc, 1390 width, height);
1390 FRAME_PIXEL_WIDTH (f) - width, y, width, height); 1391 XSetForeground (display, gc, FRAME_FOREGROUND_PIXEL (f));
1391 } 1392 }
1392 else 1393 else
1393 { 1394 {