]> Pileus Git - ~andy/gtk/blobdiff - gdk/win32/gdkvisual-win32.c
Set visual depth to 24 for 32 bits-per-pixel devices on Win32. This allows
[~andy/gtk] / gdk / win32 / gdkvisual-win32.c
index 0007c47d6a8e41f2bf9106fc40783b428b49ce87..ad821a3be9a4d120c8dc5afde9ed450f9b2e80d1 100644 (file)
@@ -246,6 +246,7 @@ _gdk_visual_init (void)
     }
   else if (bitspixel == 24 || bitspixel == 32)
     {
+      bitspixel = 24;
       system_visual->type = GDK_VISUAL_TRUE_COLOR;
       system_visual->red_mask   = 0x00FF0000;
       system_visual->green_mask = 0x0000FF00;