diff options
author | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 2005-07-18 05:38:38 +0000 |
---|---|---|
committer | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 2005-07-18 05:38:38 +0000 |
commit | 88ad5ea792b6ece9f187c47abcdbe97a9d51676c (patch) | |
tree | 18f9f3f78a7ccee5cedeb1057082633c1fea0768 | |
parent | c5fb0bd65e74e0fc46c8093fbeb7ae95b5611ef3 (diff) | |
download | emacs-88ad5ea792b6ece9f187c47abcdbe97a9d51676c.tar.gz emacs-88ad5ea792b6ece9f187c47abcdbe97a9d51676c.tar.bz2 emacs-88ad5ea792b6ece9f187c47abcdbe97a9d51676c.zip |
(x_set_cursor_color): Use XSetBackground and XSetForeground.
-rw-r--r-- | src/macfns.c | 7 |
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) { 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)) |