X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/005f5d1878c1d344e79e3c43b2790332dcea68f3..072db400deed678005905202e734b97b4ed74738:/src/gtk1/bitmap.cpp?ds=inline diff --git a/src/gtk1/bitmap.cpp b/src/gtk1/bitmap.cpp index c60e094b35..4f5ad6a770 100644 --- a/src/gtk1/bitmap.cpp +++ b/src/gtk1/bitmap.cpp @@ -453,7 +453,11 @@ bool wxBitmap::CreateFromImage( const wxImage& image, int depth ) // We handle 8-bit bitmaps ourselves using the colour cube, 12-bit // visuals are not supported by GDK so we do these ourselves, too. // 15-bit and 16-bit should actually work and 24-bit certainly does. +#ifdef __sgi + if (!image.HasMask() && (bpp > 16)) +#else if (!image.HasMask() && (bpp > 12)) +#endif { static bool s_hasInitialized = FALSE;