From 7af28dc49a515b7213fae1b731140e01a1f56cf3 Mon Sep 17 00:00:00 2001 From: Luke Dunstan Date: Thu, 15 Apr 2004 11:51:00 +0000 Subject: [PATCH] 2004-04-15 Danny Smith * include/wingdi.h (RGB): Correct macro. --- winsup/w32api/ChangeLog | 4 ++++ winsup/w32api/include/wingdi.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog index 03f56fa83..41a4033d4 100644 --- a/winsup/w32api/ChangeLog +++ b/winsup/w32api/ChangeLog @@ -1,3 +1,7 @@ +2004-04-15 Danny Smith + + * include/wingdi.h (RGB): Correct macro. + 2004-04-14 Robert Wruck * include/ddk/winddk.h (RtlEqualLuid): Correct macro. diff --git a/winsup/w32api/include/wingdi.h b/winsup/w32api/include/wingdi.h index 5c5f9a084..ec91de103 100644 --- a/winsup/w32api/include/wingdi.h +++ b/winsup/w32api/include/wingdi.h @@ -2464,7 +2464,7 @@ typedef UINT (CALLBACK *LPFNDEVMODE)(HWND,HMODULE,LPDEVMODEA,LPSTR,LPSTR,LPDEVMO typedef DWORD (CALLBACK *LPFNDEVCAPS)(LPSTR,LPSTR,UINT,LPSTR,LPDEVMODEA); -#define RGB(r,g,b) ((DWORD)(((BYTE)(r)|((WORD)(g)<<8))|(((DWORD)(BYTE)(b))<<16))) +#define RGB(r,g,b) ((COLORREF)((BYTE)(r) | ((BYTE)(g) << 8) | ((BYTE)(b) << 16))) #define MAKEPOINTS(l) (*((POINTS*)&(l))) #define MAKEROP4(f,b) (DWORD)((((b)<<8)&0xFF000000)|(f)) #define PALETTEINDEX(i) ((0x01000000|(COLORREF)(WORD)(i)))