# HG changeset patch # User Kim F. Storm # Date 1047847650 0 # Node ID 04ca11636b729b69aad6f4cbba90caf6dc9afa28 # Parent a3befb42ffd3e61390737bec1fd9787e1edff9a2 (Display): Add dummy typedef for consolidation. (XChar2b): Define alias for wchar_t for consolidation. (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros. diff -r a3befb42ffd3 -r 04ca11636b72 src/w32gui.h --- a/src/w32gui.h Sun Mar 16 20:47:08 2003 +0000 +++ b/src/w32gui.h Sun Mar 16 20:47:30 2003 +0000 @@ -36,7 +36,7 @@ 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 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 {