Mercurial > hg > xemacs-beta
comparison 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 |
comparison
equal
deleted
inserted
replaced
5917:ffb5abc8dc4e | 5918:cb65bfaf7110 |
---|---|
1031 | 1031 |
1032 /* #### This will probably cause asserts when passed a Lisp integer for a | 1032 /* #### This will probably cause asserts when passed a Lisp integer for a |
1033 color. See ca. line 759 this file. | 1033 color. See ca. line 759 this file. |
1034 #### Maybe xft_convert_color should take an XColor, not a pixel. */ | 1034 #### Maybe xft_convert_color should take an XColor, not a pixel. */ |
1035 #define XFT_FROB_LISP_COLOR(color, dim) \ | 1035 #define XFT_FROB_LISP_COLOR(color, dim) \ |
1036 xft_convert_color (dpy, cmap, visual, \ | 1036 xft_convert_color_1 (dpy, cmap, visual, \ |
1037 XCOLOR_INSTANCE_X_COLOR (color).pixel, (dim)) | 1037 &(XCOLOR_INSTANCE_X_COLOR (color)), (dim)) |
1038 #endif /* USE_XFT */ | 1038 #endif /* USE_XFT */ |
1039 | 1039 |
1040 if (width < 0) | 1040 if (width < 0) |
1041 width = XLIKE_text_width (f, cachel, Dynarr_begin (buf), | 1041 width = XLIKE_text_width (f, cachel, Dynarr_begin (buf), |
1042 Dynarr_length (buf)); | 1042 Dynarr_length (buf)); |