From: Eli Zaretskii Date: Wed, 14 Jul 2010 07:40:52 +0000 (+0300) Subject: Fix bug #6609. X-Git-Tag: emacs-pretest-23.2.90~139^2~58 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1f60c16a17e6a7be21192578e3147de5b313ee4b;p=emacs.git Fix bug #6609. w32fns.c (x_set_foreground_color): Fix setting the cursor color when it's the same as the old foreground. --- 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))