]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_set_cursor_color): Use XSetBackground and XSetForeground.
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Mon, 18 Jul 2005 05:38:38 +0000 (05:38 +0000)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Mon, 18 Jul 2005 05:38:38 +0000 (05:38 +0000)
src/macfns.c

index b9f7e2bed5f4ce33902e8255343017d903a301c3..4af1bc8101b45dbd7e34d044f7b3ff4aa1547cf0 100644 (file)
@@ -1570,9 +1570,10 @@ x_set_cursor_color (f, arg, oldval)
     {
       BLOCK_INPUT;
       /* Update frame's cursor_gc.  */
-      f->output_data.mac->cursor_gc->foreground = fore_pixel;
-      f->output_data.mac->cursor_gc->background = pixel;
-
+      XSetBackground (FRAME_MAC_DISPLAY (f),
+                     f->output_data.mac->cursor_gc, pixel);
+      XSetForeground (FRAME_MAC_DISPLAY (f),
+                     f->output_data.mac->cursor_gc, fore_pixel);
       UNBLOCK_INPUT;
 
       if (FRAME_VISIBLE_P (f))