]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dib.cpp
set TOOLKIT to WINCE for VC8 builds targeting pocketpc2003
[wxWidgets.git] / src / msw / dib.cpp
index f79d16a1132704059b1f87ab9a8926b5288931f4..3acfa95d2607bc07f0873e835359632ea8763ce4 100644 (file)
@@ -45,7 +45,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 
-#if !defined(__MWERKS__) && !defined(__SALFORDC__)
+#if !defined(__MWERKS__)
     #include <memory.h>
 #endif
 
@@ -789,9 +789,9 @@ wxImage wxDIB::ConvertToImage() const
                     *alpha++ = a;
                     if ( a > 0 )
                     {
-                        dst[0] = (dst[0] * 255 - 127) / a;
-                        dst[1] = (dst[1] * 255 - 127) / a;
-                        dst[2] = (dst[2] * 255 - 127) / a;
+                        dst[0] = (dst[0] * 255) / a;
+                        dst[1] = (dst[1] * 255) / a;
+                        dst[2] = (dst[2] * 255) / a;
                     }
                 }