Added BYTE explicit casts in RGB macro definition.
This commit is contained in:
parent
f32c18381a
commit
93a8687efc
|
@ -416,7 +416,7 @@ DECL_WINELIB_TYPE_AW(LOGCOLORSPACE)
|
||||||
|
|
||||||
/* Colors */
|
/* 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 PALETTERGB(r,g,b) (0x02000000 | RGB(r,g,b))
|
||||||
#define PALETTEINDEX(i) ((COLORREF)(0x01000000 | (WORD)(i)))
|
#define PALETTEINDEX(i) ((COLORREF)(0x01000000 | (WORD)(i)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue