diff options
author | Kim F. Storm <storm@cua.dk> | 2003-03-16 20:47:30 +0000 |
---|---|---|
committer | Kim F. Storm <storm@cua.dk> | 2003-03-16 20:47:30 +0000 |
commit | e83074af107fdf9d471fe131d592492e97471f45 (patch) | |
tree | e289db55e0297a68555a6a2506d055aa5009abd1 /src/w32gui.h | |
parent | fde8984c9f2eeebcbcbcd5fc923bcba5550533af (diff) | |
download | emacs-e83074af107fdf9d471fe131d592492e97471f45.tar.gz |
(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/w32gui.h')
-rw-r--r-- | src/w32gui.h | 16 |
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 enum w32_char_font_type { - UNKNOWN_FONT, + UNKNOWN_FONT = 0 /* FONT_TYPE_UNKNOWN */, ANSI_FONT, UNICODE_FONT, BDF_1D_FONT, @@ -76,8 +76,22 @@ typedef XGCValues * GC; typedef COLORREF Color; typedef DWORD Time; typedef HWND Window; +typedef int Display; /* ++KFS: define here? */ typedef HCURSOR Cursor; +#define XChar2b wchar_t + +/* Dealing with bits of wchar_t as if they were an XChar2b. */ +#define STORE_XCHAR2B(chp, byte1, byte2) \ + ((*chp) = ((XChar2b)((((byte1) & 0x00ff) << 8) | ((byte2) & 0x00ff)))) + +#define XCHAR2B_BYTE1(chp) \ + (((*chp) & 0xff00) >> 8) + +#define XCHAR2B_BYTE2(chp) \ + ((*chp) & 0x00ff) + + /* Windows equivalent of XImage. */ typedef struct _XImage { |