Added BYTE explicit casts in RGB macro definition.

This commit is contained in:
Warren Baird 2003-02-12 01:15:27 +00:00 committed by Alexandre Julliard
parent f32c18381a
commit 93a8687efc
1 changed files with 1 additions and 1 deletions

View File

@ -416,7 +416,7 @@ DECL_WINELIB_TYPE_AW(LOGCOLORSPACE)
/* Colors */
#define RGB(r,g,b) ((COLORREF)((r) | ((g) << 8) | ((b) << 16)))
#define RGB(r,g,b) ((COLORREF)((BYTE)(r) | ((BYTE)(g) << 8) | ((BYTE)(b) << 16)))
#define PALETTERGB(r,g,b) (0x02000000 | RGB(r,g,b))
#define PALETTEINDEX(i) ((COLORREF)(0x01000000 | (WORD)(i)))