summaryrefslogtreecommitdiff
path: root/gdk/win32/gdkvisual-win32.c
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.van.berkom@gmail.com>2010-08-30 14:56:28 +0900
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2010-08-30 14:56:28 +0900
commit54d44a9bd04cfbed8426614fc69c027a46f41a14 (patch)
tree34bdf65a6e8d5d6d4016154345d1d803ba0da379 /gdk/win32/gdkvisual-win32.c
parentb3b22c31b997fb85b3319b392a1a69407703184c (diff)
parent67194ed77b153eb5a7eb6c596f3c20e274b7787a (diff)
downloadgtk+-native-layout.tar.gz
Merge branch 'master' into native-layoutnative-layout
Conflicts: gtk/gtkplug.c gtk/gtkscrolledwindow.c
Diffstat (limited to 'gdk/win32/gdkvisual-win32.c')
-rw-r--r--gdk/win32/gdkvisual-win32.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/gdk/win32/gdkvisual-win32.c b/gdk/win32/gdkvisual-win32.c
index 440f6ce844..b3d20b7031 100644
--- a/gdk/win32/gdkvisual-win32.c
+++ b/gdk/win32/gdkvisual-win32.c
@@ -122,34 +122,26 @@ _gdk_visual_init (void)
if (map_entries >= 16 && map_entries < sizepalette)
{
- /* The calls to gdk_rgb_set_min_colors() here have knowledge
- * of what color cubes gdk_rgb_do_colormaps() will try, and
- * of the static system palette colors... XXX
- */
if (map_entries < 32)
{
map_entries = 16;
system_visual->type = GDK_VISUAL_STATIC_COLOR;
bitspixel = 4;
- gdk_rgb_set_min_colors (2*2*2);
}
else if (map_entries < 64)
{
map_entries = 32;
bitspixel = 5;
- gdk_rgb_set_min_colors (3*3*3);
}
else if (map_entries < 128)
{
map_entries = 64;
bitspixel = 6;
- gdk_rgb_set_min_colors (3*3*3);
}
else if (map_entries < 256)
{
map_entries = 128;
bitspixel = 7;
- gdk_rgb_set_min_colors (5*5*4);
}
else
g_assert_not_reached ();