Mercurial > hg > xemacs-beta
comparison src/glyphs-x.c @ 357:4711e16a8e49 r21-1-8
Import from CVS: tag r21-1-8
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:57:04 +0200 |
parents | 4f79e16b1112 |
children | cc15677e0335 |
comparison
equal
deleted
inserted
replaced
356:e85f639a32f3 | 357:4711e16a8e49 |
---|---|
40 Switch of GIF/JPEG/PNG to new EImage intermediate code by Jareth Hein for 21.0 | 40 Switch of GIF/JPEG/PNG to new EImage intermediate code by Jareth Hein for 21.0 |
41 TIFF code by Jareth Hein for 21.0 | 41 TIFF code by Jareth Hein for 21.0 |
42 GIF/JPEG/PNG/TIFF code moved to new glyph-eimage.c for 21.0 | 42 GIF/JPEG/PNG/TIFF code moved to new glyph-eimage.c for 21.0 |
43 | 43 |
44 TODO: | 44 TODO: |
45 Support the GrayScale, StaticColor and StaticGray visual classes. | |
45 Convert images.el to C and stick it in here? | 46 Convert images.el to C and stick it in here? |
46 */ | 47 */ |
47 | 48 |
48 #include <config.h> | 49 #include <config.h> |
49 #include "lisp.h" | 50 #include "lisp.h" |
130 | 131 |
131 dpy = DEVICE_X_DISPLAY (XDEVICE (device)); | 132 dpy = DEVICE_X_DISPLAY (XDEVICE (device)); |
132 cmap = DEVICE_X_COLORMAP (XDEVICE(device)); | 133 cmap = DEVICE_X_COLORMAP (XDEVICE(device)); |
133 vis = DEVICE_X_VISUAL (XDEVICE(device)); | 134 vis = DEVICE_X_VISUAL (XDEVICE(device)); |
134 depth = DEVICE_X_DEPTH(XDEVICE(device)); | 135 depth = DEVICE_X_DEPTH(XDEVICE(device)); |
136 | |
137 if (vis->class == GrayScale || vis->class == StaticColor || | |
138 vis->class == StaticGray) | |
139 { | |
140 /* #### Implement me!!! */ | |
141 return NULL; | |
142 } | |
135 | 143 |
136 if (vis->class == PseudoColor) | 144 if (vis->class == PseudoColor) |
137 { | 145 { |
138 /* Quantize the image and get a histogram while we're at it. | 146 /* Quantize the image and get a histogram while we're at it. |
139 Do this first to save memory */ | 147 Do this first to save memory */ |