aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dispextern.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dispextern.h b/src/dispextern.h
index 0615b16d712..4bf9f39cd08 100644
--- a/src/dispextern.h
+++ b/src/dispextern.h
@@ -123,7 +123,9 @@ typedef HDC Emacs_Pix_Context;
123 123
124#ifdef HAVE_NS 124#ifdef HAVE_NS
125#include "nsgui.h" 125#include "nsgui.h"
126#define FACE_COLOR_TO_PIXEL(face_color, frame) ns_color_index_to_rgba(face_color, frame) 126#define FACE_COLOR_TO_PIXEL(face_color, frame) (FRAME_NS_P (frame) \
127 ? ns_color_index_to_rgba (face_color, frame) \
128 : face_color)
127/* Following typedef needed to accommodate the MSDOS port, believe it or not. */ 129/* Following typedef needed to accommodate the MSDOS port, believe it or not. */
128typedef struct ns_display_info Display_Info; 130typedef struct ns_display_info Display_Info;
129typedef Emacs_Pixmap Emacs_Pix_Container; 131typedef Emacs_Pixmap Emacs_Pix_Container;