aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2005-07-18 05:38:38 +0000
committerYAMAMOTO Mitsuharu2005-07-18 05:38:38 +0000
commit88ad5ea792b6ece9f187c47abcdbe97a9d51676c (patch)
tree18f9f3f78a7ccee5cedeb1057082633c1fea0768
parentc5fb0bd65e74e0fc46c8093fbeb7ae95b5611ef3 (diff)
downloademacs-88ad5ea792b6ece9f187c47abcdbe97a9d51676c.tar.gz
emacs-88ad5ea792b6ece9f187c47abcdbe97a9d51676c.zip
(x_set_cursor_color): Use XSetBackground and XSetForeground.
-rw-r--r--src/macfns.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/macfns.c b/src/macfns.c
index b9f7e2bed5f..4af1bc8101b 100644
--- a/src/macfns.c
+++ b/src/macfns.c
@@ -1570,9 +1570,10 @@ x_set_cursor_color (f, arg, oldval)
1570 { 1570 {
1571 BLOCK_INPUT; 1571 BLOCK_INPUT;
1572 /* Update frame's cursor_gc. */ 1572 /* Update frame's cursor_gc. */
1573 f->output_data.mac->cursor_gc->foreground = fore_pixel; 1573 XSetBackground (FRAME_MAC_DISPLAY (f),
1574 f->output_data.mac->cursor_gc->background = pixel; 1574 f->output_data.mac->cursor_gc, pixel);
1575 1575 XSetForeground (FRAME_MAC_DISPLAY (f),
1576 f->output_data.mac->cursor_gc, fore_pixel);
1576 UNBLOCK_INPUT; 1577 UNBLOCK_INPUT;
1577 1578
1578 if (FRAME_VISIBLE_P (f)) 1579 if (FRAME_VISIBLE_P (f))