]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/imaglist.cpp
MSVC 5 compilation fixes.
[wxWidgets.git] / src / msw / imaglist.cpp
index d9526df4ed04b55ce42a7a56fbd492f594735a76..342b7da070d45af37fa5e616513777f59e55328a 100644 (file)
@@ -86,11 +86,15 @@ bool wxImageList::Create(int width, int height, bool mask, int initial)
 
     // set appropriate color depth
     int dd = wxDisplayDepth();
+#ifdef __WXWINCE__
+    flags |= ILC_COLOR;
+#else
     if (dd <= 4)       flags |= ILC_COLOR;     // 16 color
     else if (dd <= 8)  flags |= ILC_COLOR8;    // 256 color
     else if (dd <= 16) flags |= ILC_COLOR16;   // 64k hi-color
     else if (dd <= 24) flags |= ILC_COLOR24;   // 16m truecolor
     else if (dd <= 32) flags |= ILC_COLOR32;   // 16m truecolor
+#endif
 
     if ( mask )
         flags |= ILC_MASK;