# HG changeset patch # User Eli Zaretskii # Date 1279093252 -10800 # Node ID 269057771f8cea04285273a17839b043d0983ae6 # Parent d916e52744cb3e1983981b6c4f8cada44b7181aa Fix bug #6609. w32fns.c (x_set_foreground_color): Fix setting the cursor color when it's the same as the old foreground. diff -r d916e52744cb -r 269057771f8c src/ChangeLog --- a/src/ChangeLog Sat Jul 10 16:34:57 2010 -0700 +++ b/src/ChangeLog Wed Jul 14 10:40:52 2010 +0300 @@ -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 -r d916e52744cb -r 269057771f8c src/w32fns.c --- a/src/w32fns.c Sat Jul 10 16:34:57 2010 -0700 +++ b/src/w32fns.c Wed Jul 14 10:40:52 2010 +0300 @@ -1353,7 +1353,10 @@ 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))