diff src/redisplay-xlike-inc.c @ 5918:cb65bfaf7110 default

Speed up XEmacs on X. Avoid many calls to XQueryColor.
author Mike Sperber <sperber@deinprogramm.de>
date Fri, 27 Mar 2015 16:05:15 +0100
parents 81fee4aee9b6
children
line wrap: on
line diff
--- a/src/redisplay-xlike-inc.c	Thu Jun 11 16:09:11 2015 +0100
+++ b/src/redisplay-xlike-inc.c	Fri Mar 27 16:05:15 2015 +0100
@@ -1033,8 +1033,8 @@
      color.  See ca. line 759 this file.
      #### Maybe xft_convert_color should take an XColor, not a pixel. */
 #define XFT_FROB_LISP_COLOR(color, dim)					\
-  xft_convert_color (dpy, cmap, visual,					\
-		     XCOLOR_INSTANCE_X_COLOR (color).pixel, (dim))
+  xft_convert_color_1 (dpy, cmap, visual,					\
+		     &(XCOLOR_INSTANCE_X_COLOR (color)), (dim))
 #endif /* USE_XFT */
 
   if (width < 0)