Mercurial > emacs
comparison lwlib/xlwmenu.c @ 25526:8f312684d6ec
(make_shadow_gcs): Call
x_alloc_nearest_color_for_widget.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Fri, 03 Sep 1999 18:49:53 +0000 |
parents | 305d2ac394ae |
children | e0d966fb548f |
comparison
equal
deleted
inserted
replaced
25525:79574d91e925 | 25526:8f312684d6ec |
---|---|
1432 /* don't overflow/wrap! */ | 1432 /* don't overflow/wrap! */ |
1433 topc.red = MINL (65535, topc.red * 1.2); | 1433 topc.red = MINL (65535, topc.red * 1.2); |
1434 topc.green = MINL (65535, topc.green * 1.2); | 1434 topc.green = MINL (65535, topc.green * 1.2); |
1435 topc.blue = MINL (65535, topc.blue * 1.2); | 1435 topc.blue = MINL (65535, topc.blue * 1.2); |
1436 #ifdef emacs | 1436 #ifdef emacs |
1437 if (x_alloc_nearest_color (dpy, screen, cmap, &topc)) | 1437 if (x_alloc_nearest_color_for_widget (mw, cmap, &topc)) |
1438 #else | 1438 #else |
1439 if (XAllocColor (dpy, cmap, &topc)) | 1439 if (XAllocColor (dpy, cmap, &topc)) |
1440 #endif | 1440 #endif |
1441 { | 1441 { |
1442 mw->menu.top_shadow_color = topc.pixel; | 1442 mw->menu.top_shadow_color = topc.pixel; |
1450 XQueryColor (dpy, cmap, &botc); | 1450 XQueryColor (dpy, cmap, &botc); |
1451 botc.red *= 0.6; | 1451 botc.red *= 0.6; |
1452 botc.green *= 0.6; | 1452 botc.green *= 0.6; |
1453 botc.blue *= 0.6; | 1453 botc.blue *= 0.6; |
1454 #ifdef emacs | 1454 #ifdef emacs |
1455 if (x_alloc_nearest_color (dpy, screen, cmap, &botc)) | 1455 if (x_alloc_nearest_color_for_widget (mw, cmap, &botc)) |
1456 #else | 1456 #else |
1457 if (XAllocColor (dpy, cmap, &botc)) | 1457 if (XAllocColor (dpy, cmap, &botc)) |
1458 #endif | 1458 #endif |
1459 { | 1459 { |
1460 mw->menu.bottom_shadow_color = botc.pixel; | 1460 mw->menu.bottom_shadow_color = botc.pixel; |