aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/w32gui.h6
2 files changed, 8 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 0928978ba28..eecad1f9689 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12010-10-29 Kenichi Handa <handa@m17n.org>
2
3 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): Surround
4 chp by parentheses.
5
12010-10-28 Kenichi Handa <handa@m17n.org> 62010-10-28 Kenichi Handa <handa@m17n.org>
2 7
3 Implement various display methods for glyphless characters. 8 Implement various display methods for glyphless characters.
diff --git a/src/w32gui.h b/src/w32gui.h
index 9cad4f21f21..079cd19a1f1 100644
--- a/src/w32gui.h
+++ b/src/w32gui.h
@@ -59,13 +59,13 @@ typedef HCURSOR Cursor;
59 59
60/* Dealing with bits of wchar_t as if they were an XChar2b. */ 60/* Dealing with bits of wchar_t as if they were an XChar2b. */
61#define STORE_XCHAR2B(chp, byte1, byte2) \ 61#define STORE_XCHAR2B(chp, byte1, byte2) \
62 ((*chp) = ((XChar2b)((((byte1) & 0x00ff) << 8) | ((byte2) & 0x00ff)))) 62 ((*(chp)) = ((XChar2b)((((byte1) & 0x00ff) << 8) | ((byte2) & 0x00ff))))
63 63
64#define XCHAR2B_BYTE1(chp) \ 64#define XCHAR2B_BYTE1(chp) \
65 (((*chp) & 0xff00) >> 8) 65 (((*(chp)) & 0xff00) >> 8)
66 66
67#define XCHAR2B_BYTE2(chp) \ 67#define XCHAR2B_BYTE2(chp) \
68 ((*chp) & 0x00ff) 68 ((*(chp)) & 0x00ff)
69 69
70 70
71/* Windows equivalent of XImage. */ 71/* Windows equivalent of XImage. */