Commit 93a8687e authored by Warren Baird's avatar Warren Baird Committed by Alexandre Julliard

Added BYTE explicit casts in RGB macro definition.

parent f32c1838
......@@ -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)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment