mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 10:23:37 +00:00
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 */
|
||||
|
||||
#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)))
|
||||
|
||||
|
|
Loading…
Reference in a new issue