Mercurial > hg > xemacs-beta
comparison src/balloon-x.c @ 219:262b8bb4a523 r20-4b8
Import from CVS: tag r20-4b8
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:09:35 +0200 |
parents | 15872534500d |
children | c5d627a313b1 |
comparison
equal
deleted
inserted
replaced
218:c9f226976f56 | 219:262b8bb4a523 |
---|---|
32 /* ### start of hack */ | 32 /* ### start of hack */ |
33 | 33 |
34 static unsigned long | 34 static unsigned long |
35 alloc_color (Display* dpy, CONST char* colorname, int light) | 35 alloc_color (Display* dpy, CONST char* colorname, int light) |
36 { | 36 { |
37 Colormap cmap = DefaultColormap (dpy, DefaultScreen(dpy)); | 37 Colormap cmap = DEVICE_X_COLORMAP (XDEVICE(Vdefault_x_device)); |
38 unsigned long pixel = 0; | 38 unsigned long pixel = 0; |
39 XColor color; | 39 XColor color; |
40 | 40 |
41 if (XParseColor(dpy, cmap, colorname, &color) && XAllocColor(dpy, cmap, &color)) | 41 if (XParseColor(dpy, cmap, colorname, &color) && XAllocColor(dpy, cmap, &color)) |
42 { | 42 { |