From: Gerd Moellmann Date: Sat, 4 Mar 2000 16:00:56 +0000 (+0000) Subject: (struct x_display_info): Add Colormap member `cmap'. X-Git-Tag: emacs-pretest-21.0.90~4774 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7353f3a342be6307be00f0319bc50db56c9fdc95;p=emacs.git (struct x_display_info): Add Colormap member `cmap'. (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros. --- diff --git a/src/xterm.h b/src/xterm.h index df44b856068..d4d040295ca 100644 --- a/src/xterm.h +++ b/src/xterm.h @@ -169,6 +169,9 @@ struct x_display_info /* The Visual being used for this display. */ Visual *visual; + + /* THe colormap being used. */ + Colormap cmap; /* Number of panes on this screen. */ int n_planes; @@ -602,6 +605,12 @@ struct x_output /* This is the `Screen *' which frame F is on. */ #define FRAME_X_SCREEN(f) (FRAME_X_DISPLAY_INFO (f)->screen) +/* This is the Visual which frame F is on. */ +#define FRAME_X_VISUAL(f) FRAME_X_DISPLAY_INFO (f)->visual + +/* This is the Colormap which frame F uses. */ +#define FRAME_X_COLORMAP(f) FRAME_X_DISPLAY_INFO (f)->cmap + /* This is the 'font_info *' which frame F has. */ #define FRAME_X_FONT_TABLE(f) (FRAME_X_DISPLAY_INFO (f)->font_table)