]> code.delx.au - gnu-emacs/blobdiff - src/w32fns.c
Merge changes from emacs-23 branch.
[gnu-emacs] / src / w32fns.c
index c1791f2bf3e3a6c67142e3150358747eec121b61..57786d76795c57719eef45b3be90355f8cc25de4 100644 (file)
@@ -1333,7 +1333,10 @@ x_set_foreground_color (struct frame *f, Lisp_Object arg, Lisp_Object 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))