summaryrefslogtreecommitdiff
path: root/gdk/x11/gdkvisual-x11.c
diff options
context:
space:
mode:
authorShawn Amundson <amundson@src.gnome.org>1997-12-20 08:39:21 +0000
committerShawn Amundson <amundson@src.gnome.org>1997-12-20 08:39:21 +0000
commit1b6fb00808f6c6776b6c408c85d9eb9b4a09df08 (patch)
tree29d49bef788e529376428c1480ae2bfe7244e82c /gdk/x11/gdkvisual-x11.c
parent32fbb7b8211a97dc0c03a920ba4857ae43bc34b2 (diff)
downloadgtk+-1b6fb00808f6c6776b6c408c85d9eb9b4a09df08.tar.gz
Beginnings of support for 1 bpp depth in gdk. Very minor changes.
Most of testgtk runs on 1 bpp. Nothing much else will work until gdkcc is used for gtk_preview and other color-intensive things. -Shawn
Diffstat (limited to 'gdk/x11/gdkvisual-x11.c')
-rw-r--r--gdk/x11/gdkvisual-x11.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdk/x11/gdkvisual-x11.c b/gdk/x11/gdkvisual-x11.c
index 22acee6f13..bb9388f208 100644
--- a/gdk/x11/gdkvisual-x11.c
+++ b/gdk/x11/gdkvisual-x11.c
@@ -55,7 +55,7 @@ static GHashTable *visual_hash = NULL;
void
gdk_visual_init ()
{
- static gint possible_depths[5] = { 32, 24, 16, 15, 8 };
+ static gint possible_depths[6] = { 32, 24, 16, 15, 8, 1 };
static GdkVisualType possible_types[6] =
{
GDK_VISUAL_DIRECT_COLOR,
@@ -66,7 +66,7 @@ gdk_visual_init ()
GDK_VISUAL_STATIC_GRAY
};
- static gint npossible_depths = 5;
+ static gint npossible_depths = 6;
static gint npossible_types = 6;
XVisualInfo *visual_list;
@@ -85,7 +85,7 @@ gdk_visual_init ()
nvisuals = 0;
for (i = 0; i < nxvisuals; i++)
{
- if (visual_list[i].depth >= 8)
+ if (visual_list[i].depth >= 1)
{
#ifdef __cplusplus
switch (visual_list[i].c_class)