diff options
| author | Alexander Gramiak | 2019-05-09 13:07:35 -0600 |
|---|---|---|
| committer | Alexander Gramiak | 2019-05-19 19:50:32 -0600 |
| commit | c0e146e4ec266edf348473c3db7ca8d16745f4f7 (patch) | |
| tree | 3f2070ccbf941ba14f43836f7cfa1b4c78979043 /src/w32term.c | |
| parent | 05b79539f4d22bfe5160777aa5a963aeb74b000c (diff) | |
| download | emacs-c0e146e4ec266edf348473c3db7ca8d16745f4f7.tar.gz emacs-c0e146e4ec266edf348473c3db7ca8d16745f4f7.zip | |
Introduce Emacs_Color struct and typedef
This avoids clashing with the XColor struct from X.
* src/dispextern [HAVE_X_WINDOWS]: Define Emacs_Color alias.
[!HAVE_X_WINDOWS]: Rename XColor compatibility struct to
Emacs_Color. Remove unused fields.
* src/gtkutil.c:
* src/gtkutil.h:
* src/image.c:
* src/nsterm.h:
* src/nsterm.m:
* src/termhooks.h:
* src/w32fns.c:
* src/w32term.c:
* src/w32term.h:
* src/xfaces.c:
* src/xfns.c:
* src/xterm.h: Use Emacs_Color over XColor outside of X-specific
sections.
Diffstat (limited to 'src/w32term.c')
| -rw-r--r-- | src/w32term.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/w32term.c b/src/w32term.c index 435455e1a6d..6c53bc147a0 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -1517,7 +1517,7 @@ w32_alloc_lighter_color (struct frame *f, COLORREF *color, | |||
| 1517 | colors in COLORS. On W32, we no longer try to map colors to | 1517 | colors in COLORS. On W32, we no longer try to map colors to |
| 1518 | a palette. */ | 1518 | a palette. */ |
| 1519 | static void | 1519 | static void |
| 1520 | w32_query_colors (struct frame *f, XColor *colors, int ncolors) | 1520 | w32_query_colors (struct frame *f, Emacs_Color *colors, int ncolors) |
| 1521 | { | 1521 | { |
| 1522 | int i; | 1522 | int i; |
| 1523 | 1523 | ||
| @@ -1534,7 +1534,7 @@ w32_query_colors (struct frame *f, XColor *colors, int ncolors) | |||
| 1534 | /* Store F's background color into *BGCOLOR. */ | 1534 | /* Store F's background color into *BGCOLOR. */ |
| 1535 | 1535 | ||
| 1536 | static void | 1536 | static void |
| 1537 | w32_query_frame_background_color (struct frame *f, XColor *bgcolor) | 1537 | w32_query_frame_background_color (struct frame *f, Emacs_Color *bgcolor) |
| 1538 | { | 1538 | { |
| 1539 | bgcolor->pixel = FRAME_BACKGROUND_PIXEL (f); | 1539 | bgcolor->pixel = FRAME_BACKGROUND_PIXEL (f); |
| 1540 | w32_query_colors (f, bgcolor, 1); | 1540 | w32_query_colors (f, bgcolor, 1); |
| @@ -7208,7 +7208,7 @@ w32_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name) | |||
| 7208 | 7208 | ||
| 7209 | /* initialize palette with white and black */ | 7209 | /* initialize palette with white and black */ |
| 7210 | { | 7210 | { |
| 7211 | XColor color; | 7211 | Emacs_Color color; |
| 7212 | w32_defined_color (0, "white", &color, true, false); | 7212 | w32_defined_color (0, "white", &color, true, false); |
| 7213 | w32_defined_color (0, "black", &color, true, false); | 7213 | w32_defined_color (0, "black", &color, true, false); |
| 7214 | } | 7214 | } |