]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/colour.cpp
According to Stefan Neis this file isn't used by anything other than
[wxWidgets.git] / src / gtk / colour.cpp
index 98946e16496b8df648ad934c9b019bbc5e94c615..ebb55bb7b01f4fbea09cc3cd74f146773699d6f9 100644 (file)
@@ -146,7 +146,8 @@ void wxColourRefData::AllocColour( GdkColormap *cmap )
 
 #define M_COLDATA ((wxColourRefData *)m_refData)
 
-#define SHIFT (8*(sizeof(short int)-sizeof(char)))
+// GDK's values are in 0..65535 range, our are in 0..255
+#define SHIFT  8
 
 IMPLEMENT_DYNAMIC_CLASS(wxColour,wxGDIObject)