]> git.saurik.com Git - wxWidgets.git/commitdiff
gdk_rgb doesn't work on SGI.
authorRobert Roebling <robert@roebling.de>
Tue, 15 Jan 2002 16:21:09 +0000 (16:21 +0000)
committerRobert Roebling <robert@roebling.de>
Tue, 15 Jan 2002 16:21:09 +0000 (16:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13582 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/bitmap.cpp
src/gtk1/bitmap.cpp

index c60e094b358ca82fadb353f7f1175d8b6e782b75..4f5ad6a77057bf7b0f46941dd0731a09777488ce 100644 (file)
@@ -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;
 
index c60e094b358ca82fadb353f7f1175d8b6e782b75..4f5ad6a77057bf7b0f46941dd0731a09777488ce 100644 (file)
@@ -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;