X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b39dbf34b887a73c525da903d8599f4f6b7eb8f9..3a7c125370cf6fd2b66eb06ba031efcfd5c5b9b0:/src/msw/imaglist.cpp diff --git a/src/msw/imaglist.cpp b/src/msw/imaglist.cpp index d9526df4ed..c31e18afbe 100644 --- a/src/msw/imaglist.cpp +++ b/src/msw/imaglist.cpp @@ -17,7 +17,7 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "imaglist.h" #endif @@ -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;