From 1f60c16a17e6a7be21192578e3147de5b313ee4b Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Wed, 14 Jul 2010 10:40:52 +0300 Subject: [PATCH] Fix bug #6609. w32fns.c (x_set_foreground_color): Fix setting the cursor color when it's the same as the old foreground. --- src/ChangeLog | 5 +++++ src/w32fns.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index b6fe8f8c5c3..1d9d3927e89 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-07-14 Eli Zaretskii + + * w32fns.c (x_set_foreground_color): Fix setting the cursor color + when it's the same as the old foreground. (Bug#6609) + 2010-07-10 Chong Yidong * 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) if (FRAME_W32_WINDOW (f) != 0) { if (x->cursor_pixel == old_fg) - x->cursor_pixel = fg; + { + x->cursor_pixel = fg; + x->cursor_gc->background = fg; + } update_face_from_frame_parameter (f, Qforeground_color, arg); if (FRAME_VISIBLE_P (f)) -- 2.39.2