diff options
Diffstat (limited to 'src')
| -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 | |||
| 36 | 36 | ||
| 37 | enum w32_char_font_type | 37 | enum 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; | |||
| 76 | typedef COLORREF Color; | 76 | typedef COLORREF Color; |
| 77 | typedef DWORD Time; | 77 | typedef DWORD Time; |
| 78 | typedef HWND Window; | 78 | typedef HWND Window; |
| 79 | typedef int Display; /* ++KFS: define here? */ | ||
| 79 | typedef HCURSOR Cursor; | 80 | typedef 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. */ |
| 82 | typedef struct _XImage | 96 | typedef struct _XImage |
| 83 | { | 97 | { |