aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKim F. Storm2003-03-16 20:47:30 +0000
committerKim F. Storm2003-03-16 20:47:30 +0000
commite83074af107fdf9d471fe131d592492e97471f45 (patch)
treee289db55e0297a68555a6a2506d055aa5009abd1 /src
parentfde8984c9f2eeebcbcbcd5fc923bcba5550533af (diff)
downloademacs-e83074af107fdf9d471fe131d592492e97471f45.tar.gz
emacs-e83074af107fdf9d471fe131d592492e97471f45.zip
(Display): Add dummy typedef for consolidation.
(XChar2b): Define alias for wchar_t for consolidation. (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
Diffstat (limited to 'src')
-rw-r--r--src/w32gui.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/w32gui.h b/src/w32gui.h
index 9f59290027c..2cca61eb5f9 100644
--- a/src/w32gui.h
+++ b/src/w32gui.h
@@ -36,7 +36,7 @@ typedef struct _XCharStruct
36 36
37enum w32_char_font_type 37enum w32_char_font_type
38{ 38{
39 UNKNOWN_FONT, 39 UNKNOWN_FONT = 0 /* FONT_TYPE_UNKNOWN */,
40 ANSI_FONT, 40 ANSI_FONT,
41 UNICODE_FONT, 41 UNICODE_FONT,
42 BDF_1D_FONT, 42 BDF_1D_FONT,
@@ -76,8 +76,22 @@ typedef XGCValues * GC;
76typedef COLORREF Color; 76typedef COLORREF Color;
77typedef DWORD Time; 77typedef DWORD Time;
78typedef HWND Window; 78typedef HWND Window;
79typedef int Display; /* ++KFS: define here? */
79typedef HCURSOR Cursor; 80typedef HCURSOR Cursor;
80 81
82#define XChar2b wchar_t
83
84/* Dealing with bits of wchar_t as if they were an XChar2b. */
85#define STORE_XCHAR2B(chp, byte1, byte2) \
86 ((*chp) = ((XChar2b)((((byte1) & 0x00ff) << 8) | ((byte2) & 0x00ff))))
87
88#define XCHAR2B_BYTE1(chp) \
89 (((*chp) & 0xff00) >> 8)
90
91#define XCHAR2B_BYTE2(chp) \
92 ((*chp) & 0x00ff)
93
94
81/* Windows equivalent of XImage. */ 95/* Windows equivalent of XImage. */
82typedef struct _XImage 96typedef struct _XImage
83{ 97{