diff src/console-x.h @ 219:262b8bb4a523 r20-4b8

Import from CVS: tag r20-4b8
author cvs
date Mon, 13 Aug 2007 10:09:35 +0200
parents d44af0c54775
children c5d627a313b1
line wrap: on
line diff
--- a/src/console-x.h	Mon Aug 13 10:08:36 2007 +0200
+++ b/src/console-x.h	Mon Aug 13 10:09:35 2007 +0200
@@ -76,6 +76,11 @@
   /* Cache of GC's for frame's on this device. */
   struct gc_cache *gc_cache;
 
+  /* Selected visual, depth and colormap for this device */
+  Visual *visual;
+  int depth;
+  Colormap device_cmap;
+
   /* Used by x_bevel_modeline in redisplay-x.c */
   Pixmap gray_pixmap;
 
@@ -179,6 +184,9 @@
 
 #define FRAME_X_DISPLAY(f) (DEVICE_X_DISPLAY (XDEVICE (f->device)))
 #define DEVICE_X_DISPLAY(d) 	(DEVICE_X_DATA (d)->display)
+#define DEVICE_X_VISUAL(d)	(DEVICE_X_DATA (d)->visual)
+#define DEVICE_X_DEPTH(d)	(DEVICE_X_DATA (d)->depth)
+#define DEVICE_X_COLORMAP(d) 	(DEVICE_X_DATA (d)->device_cmap)
 #define DEVICE_XT_APP_SHELL(d) 	(DEVICE_X_DATA (d)->Xt_app_shell)
 #define DEVICE_X_GC_CACHE(d) 	(DEVICE_X_DATA (d)->gc_cache)
 #define DEVICE_X_GRAY_PIXMAP(d) (DEVICE_X_DATA (d)->gray_pixmap)