aboutsummaryrefslogtreecommitdiffstats
path: root/src/macfns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/macfns.c')
-rw-r--r--src/macfns.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/macfns.c b/src/macfns.c
index b7a8cd7e974..6ce4b66031e 100644
--- a/src/macfns.c
+++ b/src/macfns.c
@@ -1370,11 +1370,11 @@ x_set_mouse_color (f, arg, oldval)
1370 Cursor cursor, nontext_cursor, mode_cursor, hand_cursor; 1370 Cursor cursor, nontext_cursor, mode_cursor, hand_cursor;
1371 Cursor hourglass_cursor, horizontal_drag_cursor; 1371 Cursor hourglass_cursor, horizontal_drag_cursor;
1372 unsigned long pixel = x_decode_color (f, arg, BLACK_PIX_DEFAULT (f)); 1372 unsigned long pixel = x_decode_color (f, arg, BLACK_PIX_DEFAULT (f));
1373 unsigned long mask_color = x->background_pixel; 1373 unsigned long mask_color = FRAME_BACKGROUND_PIXEL (f);
1374 1374
1375 /* Don't let pointers be invisible. */ 1375 /* Don't let pointers be invisible. */
1376 if (mask_color == pixel) 1376 if (mask_color == pixel)
1377 pixel = x->foreground_pixel; 1377 pixel = FRAME_FOREGROUND_PIXEL (f);
1378 1378
1379 f->output_data.mac->mouse_pixel = pixel; 1379 f->output_data.mac->mouse_pixel = pixel;
1380 1380
@@ -2401,8 +2401,8 @@ x_make_gc (f)
2401 = (XCreatePixmapFromBitmapData 2401 = (XCreatePixmapFromBitmapData
2402 (FRAME_X_DISPLAY (f), FRAME_X_DISPLAY_INFO (f)->root_window, 2402 (FRAME_X_DISPLAY (f), FRAME_X_DISPLAY_INFO (f)->root_window,
2403 gray_bits, gray_width, gray_height, 2403 gray_bits, gray_width, gray_height,
2404 f->output_data.x->foreground_pixel, 2404 FRAME_FOREGROUND_PIXEL (f),
2405 f->output_data.x->background_pixel, 2405 FRAME_BACKGROUND_PIXEL (f),
2406 DefaultDepth (FRAME_X_DISPLAY (f), FRAME_X_SCREEN_NUMBER (f)))); 2406 DefaultDepth (FRAME_X_DISPLAY (f), FRAME_X_SCREEN_NUMBER (f))));
2407#endif 2407#endif
2408 2408