comparison src/glyphs-x.c @ 430:a5df635868b2 r21-2-23

Import from CVS: tag r21-2-23
author cvs
date Mon, 13 Aug 2007 11:29:08 +0200
parents 3ecd8885ac67
children 9d177e8d4150
comparison
equal deleted inserted replaced
429:8305706cbb93 430:a5df635868b2
42 TIFF code by Jareth Hein for 21.0 42 TIFF code by Jareth Hein for 21.0
43 GIF/JPEG/PNG/TIFF code moved to new glyph-eimage.c by Andy Piper for 21.0 43 GIF/JPEG/PNG/TIFF code moved to new glyph-eimage.c by Andy Piper for 21.0
44 Subwindow and Widget support by Andy Piper for 21.2 44 Subwindow and Widget support by Andy Piper for 21.2
45 45
46 TODO: 46 TODO:
47 Support the GrayScale, StaticColor and StaticGray visual classes.
47 Convert images.el to C and stick it in here? 48 Convert images.el to C and stick it in here?
48 */ 49 */
49 50
50 #include <config.h> 51 #include <config.h>
51 #include "lisp.h" 52 #include "lisp.h"
181 182
182 dpy = DEVICE_X_DISPLAY (XDEVICE (device)); 183 dpy = DEVICE_X_DISPLAY (XDEVICE (device));
183 cmap = DEVICE_X_COLORMAP (XDEVICE(device)); 184 cmap = DEVICE_X_COLORMAP (XDEVICE(device));
184 vis = DEVICE_X_VISUAL (XDEVICE(device)); 185 vis = DEVICE_X_VISUAL (XDEVICE(device));
185 depth = DEVICE_X_DEPTH(XDEVICE(device)); 186 depth = DEVICE_X_DEPTH(XDEVICE(device));
187
188 if (vis->class == GrayScale || vis->class == StaticColor ||
189 vis->class == StaticGray)
190 {
191 /* #### Implement me!!! */
192 return NULL;
193 }
186 194
187 if (vis->class == PseudoColor) 195 if (vis->class == PseudoColor)
188 { 196 {
189 /* Quantize the image and get a histogram while we're at it. 197 /* Quantize the image and get a histogram while we're at it.
190 Do this first to save memory */ 198 Do this first to save memory */