# HG changeset patch # User YAMAMOTO Mitsuharu # Date 1121665118 0 # Node ID d3239f455aaa68da462bf989694995f91f92299c # Parent 07aa938ec7595a3fa2504352f542ce93aa462927 (x_set_cursor_color): Use XSetBackground and XSetForeground. diff -r 07aa938ec759 -r d3239f455aaa src/macfns.c --- a/src/macfns.c Sun Jul 17 22:27:29 2005 +0000 +++ b/src/macfns.c Mon Jul 18 05:38:38 2005 +0000 @@ -1570,9 +1570,10 @@ { 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))