changeset 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 79574d91e925
children 93b2f5b92137
files lwlib/xlwmenu.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lwlib/xlwmenu.c	Fri Sep 03 18:48:46 1999 +0000
+++ b/lwlib/xlwmenu.c	Fri Sep 03 18:49:53 1999 +0000
@@ -1434,7 +1434,7 @@
       topc.green = MINL (65535, topc.green * 1.2);
       topc.blue  = MINL (65535, topc.blue  * 1.2);
 #ifdef emacs
-      if (x_alloc_nearest_color (dpy, screen, cmap, &topc))
+      if (x_alloc_nearest_color_for_widget (mw, cmap, &topc))
 #else
       if (XAllocColor (dpy, cmap, &topc))
 #endif
@@ -1452,7 +1452,7 @@
       botc.green *= 0.6;
       botc.blue  *= 0.6;
 #ifdef emacs
-      if (x_alloc_nearest_color (dpy, screen, cmap, &botc))
+      if (x_alloc_nearest_color_for_widget (mw, cmap, &botc))
 #else
       if (XAllocColor (dpy, cmap, &botc))
 #endif