[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 9ef61c1: Preserve display's foreground color when c
From: |
Martin Rudalics |
Subject: |
[Emacs-diffs] master 9ef61c1: Preserve display's foreground color when clearing internal borders (Bug#28278) |
Date: |
Wed, 30 Aug 2017 04:28:17 -0400 (EDT) |
branch: master
commit 9ef61c17af49886d150b938f51040ff3a1da1c80
Author: Martin Rudalics <address@hidden>
Commit: Martin Rudalics <address@hidden>
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).
---
src/xterm.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/src/xterm.c b/src/xterm.c
index eff1519..64e8970 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)
{
unsigned long color = face->background;
Display *display = FRAME_X_DISPLAY (f);
+ GC gc = f->output_data.x->normal_gc;
- XSetForeground (display, f->output_data.x->normal_gc, color);
- x_fill_rectangle (f, f->output_data.x->normal_gc,
- 0, y, width, height);
- x_fill_rectangle (f, f->output_data.x->normal_gc,
- FRAME_PIXEL_WIDTH (f) - width, y, width, height);
+ XSetForeground (display, gc, color);
+ x_fill_rectangle (f, gc, 0, y, width, height);
+ x_fill_rectangle (f, gc, FRAME_PIXEL_WIDTH (f) - width, y,
+ width, height);
+ XSetForeground (display, gc, FRAME_FOREGROUND_PIXEL (f));
}
else
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 9ef61c1: Preserve display's foreground color when clearing internal borders (Bug#28278),
Martin Rudalics <=