fix win32 build after removal of the colormap debug category

This commit is contained in:
Fridrich Štrba 2011-01-21 11:20:16 +01:00
parent 8effa1eb0e
commit a79f05c7be

View File

@ -65,16 +65,12 @@ _gdk_visual_init (void)
system_visual = g_object_new (GDK_TYPE_VISUAL, NULL); system_visual = g_object_new (GDK_TYPE_VISUAL, NULL);
system_visual->screen = gdk_screen_get_default(); system_visual->screen = gdk_screen_get_default();
GDK_NOTE (COLORMAP, g_print ("BITSPIXEL=%d NUMCOLORS=%d\n",
bitspixel, numcolors));
if (rastercaps & RC_PALETTE) if (rastercaps & RC_PALETTE)
{ {
const int sizepalette = GetDeviceCaps (_gdk_display_hdc, SIZEPALETTE); const int sizepalette = GetDeviceCaps (_gdk_display_hdc, SIZEPALETTE);
gchar *max_colors = getenv ("GDK_WIN32_MAX_COLORS"); gchar *max_colors = getenv ("GDK_WIN32_MAX_COLORS");
system_visual->type = GDK_VISUAL_PSEUDO_COLOR; system_visual->type = GDK_VISUAL_PSEUDO_COLOR;
GDK_NOTE (COLORMAP, g_print ("SIZEPALETTE=%d\n", sizepalette));
g_assert (sizepalette == 256); g_assert (sizepalette == 256);
if (max_colors != NULL) if (max_colors != NULL)