comparison dw.h @ 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 772d4c692ea5
comparison
equal deleted inserted replaced
1102:cfe7d2b6bc16 1103:bf932c9316ff
1375 #define DW_GREEN_MASK (0x0000FF00) 1375 #define DW_GREEN_MASK (0x0000FF00)
1376 #define DW_BLUE_MASK (0x00FF0000) 1376 #define DW_BLUE_MASK (0x00FF0000)
1377 #define DW_RED_VALUE(a) (a & DW_RED_MASK) 1377 #define DW_RED_VALUE(a) (a & DW_RED_MASK)
1378 #define DW_GREEN_VALUE(a) ((a & DW_GREEN_MASK) >> 8) 1378 #define DW_GREEN_VALUE(a) ((a & DW_GREEN_MASK) >> 8)
1379 #define DW_BLUE_VALUE(a) ((a & DW_BLUE_MASK) >> 16) 1379 #define DW_BLUE_VALUE(a) ((a & DW_BLUE_MASK) >> 16)
1380 #define DW_RGB(a, b, c) (0xF0000000 | a | b << 8 | c << 16) 1380 #define DW_RGB(a, b, c) (0xF0000000 | (a) | (b) << 8 | (c) << 16)
1381 #endif 1381 #endif
1382 1382
1383 #define DW_MENU_SEPARATOR "" 1383 #define DW_MENU_SEPARATOR ""
1384 #define DW_NOMENU 0 1384 #define DW_NOMENU 0
1385 1385