From: Gerd Moellmann Date: Wed, 18 Oct 2000 11:58:27 +0000 (+0000) Subject: (struct x_display_info): Add color_cells and ncolor_cells. X-Git-Tag: emacs-pretest-21.0.90~785 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=70772ed1ac4c747a004e10cce40aacfadded0904;p=emacs.git (struct x_display_info): Add color_cells and ncolor_cells. (x_query_color, x_query_colors): Add prototype. --- diff --git a/src/xterm.h b/src/xterm.h index c33655e3627..aaf14700ac3 100644 --- a/src/xterm.h +++ b/src/xterm.h @@ -339,6 +339,11 @@ struct x_display_info XIM xim; XIMStyles *xim_styles; #endif + + /* If non-null, a cache of the colors in the color map. Don't + use this directly, call x_color_cells instead. */ + XColor *color_cells; + int ncolor_cells; }; /* This checks to make sure we have a display. */ @@ -978,6 +983,8 @@ extern unsigned long x_copy_color P_ ((struct frame *, unsigned long)); #ifdef USE_X_TOOLKIT extern XtAppContext Xt_app_con; #endif +extern void x_query_colors P_ ((struct frame *f, XColor *, int)); +extern void x_query_color P_ ((struct frame *f, XColor *)); /* Defined in xselect.c */