From: David Webster Date: Mon, 18 Dec 2000 05:31:33 +0000 (+0000) Subject: OS2RGB def fix X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/141ddc08d63dba4d61cab69b763ac2d247fa037f?ds=sidebyside OS2RGB def fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8937 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/defs.h b/include/wx/defs.h index e8fc516dc6..8c13ac9d34 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -1831,7 +1831,7 @@ typedef unsigned short WORD; // WIN32 graphics types for OS/2 GPI // RGB under OS2 is more like a PALETTEENTRY struct under Windows so we need a real RGB def -#define OS2RGB(r,g,b) ((DWORD ((BYTE) (r) | ((WORD) (g) << 8)) | (((DWORD)(BYTE)(b)) << 16))) +#define OS2RGB(r,g,b) ((DWORD ((BYTE) (b) | ((WORD) (g) << 8)) | (((DWORD)(BYTE)(r)) << 16))) typedef unsigned long COLORREF; #define GetBValue(rgb) ((BYTE)((rgb) >> 16))