changeset 1103:bf932c9316ff

Minor change to the DW_RGB() macro to avoid compiler warnings under certain circumstances.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 26 Jul 2011 04:29:06 +0000
parents cfe7d2b6bc16
children 84473658ce37
files dw.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dw.h	Tue Jul 26 03:09:41 2011 +0000
+++ b/dw.h	Tue Jul 26 04:29:06 2011 +0000
@@ -1377,7 +1377,7 @@
 #define DW_RED_VALUE(a) (a & DW_RED_MASK)
 #define DW_GREEN_VALUE(a) ((a & DW_GREEN_MASK) >> 8)
 #define DW_BLUE_VALUE(a) ((a & DW_BLUE_MASK) >> 16)
-#define DW_RGB(a, b, c) (0xF0000000 | a | b << 8 | c << 16)
+#define DW_RGB(a, b, c) (0xF0000000 | (a) | (b) << 8 | (c) << 16)
 #endif
 
 #define DW_MENU_SEPARATOR ""