summaryrefslogtreecommitdiff
path: root/gdk/gdkvisual.c
diff options
context:
space:
mode:
authorCDT 1998 Shawn T. Amundson <amundson@gtk.org>1998-07-10 01:27:37 +0000
committerShawn Amundson <amundson@src.gnome.org>1998-07-10 01:27:37 +0000
commit26dcaeaf5637f3f748042997da09eb3c11a658c1 (patch)
tree9349561432d02c80dbc1f83f1ce35ced987e70ad /gdk/gdkvisual.c
parent347efc33b8007f5d2fe625d7c0e6a51fbb3a3438 (diff)
downloadgdk-pixbuf-26dcaeaf5637f3f748042997da09eb3c11a658c1.tar.gz
4 bit support, increased available_depths array, which was too low (?)
Thu Jul 9 20:20:04 CDT 1998 Shawn T. Amundson <amundson@gtk.org> * gdk/gdkvisuals.c: 4 bit support, increased available_depths array, which was too low (?)
Diffstat (limited to 'gdk/gdkvisual.c')
-rw-r--r--gdk/gdkvisual.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdk/gdkvisual.c b/gdk/gdkvisual.c
index c471424f3..78d62fae9 100644
--- a/gdk/gdkvisual.c
+++ b/gdk/gdkvisual.c
@@ -35,7 +35,7 @@ static GdkVisualPrivate *system_visual;
static GdkVisualPrivate *visuals;
static gint nvisuals;
-static gint available_depths[4];
+static gint available_depths[7];
static gint navailable_depths;
static GdkVisualType available_types[6];
@@ -60,7 +60,7 @@ static GHashTable *visual_hash = NULL;
void
gdk_visual_init (void)
{
- static gint possible_depths[6] = { 32, 24, 16, 15, 8, 1 };
+ static gint possible_depths[7] = { 32, 24, 16, 15, 8, 4, 1 };
static GdkVisualType possible_types[6] =
{
GDK_VISUAL_DIRECT_COLOR,
@@ -71,7 +71,7 @@ gdk_visual_init (void)
GDK_VISUAL_STATIC_GRAY
};
- static gint npossible_depths = 6;
+ static gint npossible_depths = 7;
static gint npossible_types = 6;
XVisualInfo *visual_list;