aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2010-07-14 10:40:52 +0300
committerEli Zaretskii2010-07-14 10:40:52 +0300
commit1f60c16a17e6a7be21192578e3147de5b313ee4b (patch)
tree17450422a6d45c74bcd00c4609b8f7124b08fab9
parent3260caf88a9f6ea92c9e6cd2770c3db3b1864311 (diff)
downloademacs-1f60c16a17e6a7be21192578e3147de5b313ee4b.tar.gz
emacs-1f60c16a17e6a7be21192578e3147de5b313ee4b.zip
Fix bug #6609.
w32fns.c (x_set_foreground_color): Fix setting the cursor color when it's the same as the old foreground.
-rw-r--r--src/ChangeLog5
-rw-r--r--src/w32fns.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index b6fe8f8c5c3..1d9d3927e89 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12010-07-14 Eli Zaretskii <eliz@gnu.org>
2
3 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
4 when it's the same as the old foreground. (Bug#6609)
5
12010-07-10 Chong Yidong <cyd@stupidchicken.com> 62010-07-10 Chong Yidong <cyd@stupidchicken.com>
2 7
3 * xfaces.c (realize_face): Garbage the frame if a face is removed 8 * xfaces.c (realize_face): Garbage the frame if a face is removed
diff --git a/src/w32fns.c b/src/w32fns.c
index 8fabb13fb82..9df243ede7f 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -1353,7 +1353,10 @@ x_set_foreground_color (f, arg, oldval)
1353 if (FRAME_W32_WINDOW (f) != 0) 1353 if (FRAME_W32_WINDOW (f) != 0)
1354 { 1354 {
1355 if (x->cursor_pixel == old_fg) 1355 if (x->cursor_pixel == old_fg)
1356 x->cursor_pixel = fg; 1356 {
1357 x->cursor_pixel = fg;
1358 x->cursor_gc->background = fg;
1359 }
1357 1360
1358 update_face_from_frame_parameter (f, Qforeground_color, arg); 1361 update_face_from_frame_parameter (f, Qforeground_color, arg);
1359 if (FRAME_VISIBLE_P (f)) 1362 if (FRAME_VISIBLE_P (f))