]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/palette.cpp
The device origin can be set on WinCE, so use it and redefine conversion
[wxWidgets.git] / src / msw / palette.cpp
index 4a73bb28b27b3895dd6b9a8f14ac56eecf89255f..0d46158e021b7d199fefef3c803b844f56e400c8 100644 (file)
@@ -87,7 +87,7 @@ bool wxPalette::Create(int n, const unsigned char *red, const unsigned char *gre
     return false;
 
   npPal->palVersion = 0x300;
-  npPal->palNumEntries = n;
+  npPal->palNumEntries = (WORD)n;
 
   int i;
   for (i = 0; i < n; i ++)