X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ea258ad3489638fbcf504a674f8793b1362bd2b5..d08f23a71cc77701bb2a02da0aa96835b6d5231b:/src/xpm/simx.h?ds=sidebyside diff --git a/src/xpm/simx.h b/src/xpm/simx.h index 1e2d09ff54..0b3439dbc7 100644 --- a/src/xpm/simx.h +++ b/src/xpm/simx.h @@ -47,7 +47,9 @@ #include typedef unsigned long COLORREF; // RGB under OS2 is more like a PALETTEENTRY struct under Windows so we need a real RGB def -#define OS2RGB(r,g,b) ((ULONG ((BYTE) (r) | ((UINT) (g) << 8)) | (((ULONG)(BYTE)(b)) << 16))) +//#define OS2RGB(r,g,b) ((ULONG ((BYTE) (r) | ((UINT) (g) << 8)) | (((ULONG)(BYTE)(b)) << 16))) +#define OS2RGB(r,g,b) ((unsigned long)r<<16|(unsigned long)g<<8|(unsigned long)b) + #define GetBValue(rgb) ((BYTE)((rgb) >> 16)) #define GetGValue(rgb) ((BYTE)(((WORD)(rgb)) >> 8)) #define GetRValue(rgb) ((BYTE)(rgb))