summaryrefslogtreecommitdiff
path: root/gtk/gtkpreview.c
diff options
context:
space:
mode:
authorCDT 1998 Shawn T. Amundson <amundson@gtk.org>1998-07-10 02:09:10 +0000
committerShawn Amundson <amundson@src.gnome.org>1998-07-10 02:09:10 +0000
commit524be636e93972b5932a6efc38841096f30aa729 (patch)
tree775edfc83a93bb841f55ffe8fce7ad5b94ff8e92 /gtk/gtkpreview.c
parent26dcaeaf5637f3f748042997da09eb3c11a658c1 (diff)
downloadgdk-pixbuf-524be636e93972b5932a6efc38841096f30aa729.tar.gz
add in just enough support for 1 or 4 bits so that it seems to allow
Thu Jul 9 21:03:19 CDT 1998 Shawn T. Amundson <amundson@gtk.org> * gtk/gtkpreview.c: add in just enough support for 1 or 4 bits so that it seems to allow normal operation in those modes, although you will only see black. 1 bit untested
Diffstat (limited to 'gtk/gtkpreview.c')
-rw-r--r--gtk/gtkpreview.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk/gtkpreview.c b/gtk/gtkpreview.c
index 2aa3d0b13..713db2b57 100644
--- a/gtk/gtkpreview.c
+++ b/gtk/gtkpreview.c
@@ -831,9 +831,11 @@ gtk_preview_get_visuals (GtkPreviewClass *klass)
GDK_VISUAL_DIRECT_COLOR,
GDK_VISUAL_TRUE_COLOR,
GDK_VISUAL_DIRECT_COLOR,
- GDK_VISUAL_PSEUDO_COLOR
+ GDK_VISUAL_PSEUDO_COLOR,
+ GDK_VISUAL_STATIC_COLOR,
+ GDK_VISUAL_STATIC_GRAY
};
- static gint depths[] = { 24, 24, 32, 32, 16, 16, 15, 15, 8 };
+ static gint depths[] = { 24, 24, 32, 32, 16, 16, 15, 15, 8, 4, 1 };
static gint nvisual_types = sizeof (types) / sizeof (types[0]);
int i;
@@ -887,6 +889,8 @@ gtk_preview_get_visuals (GtkPreviewClass *klass)
switch (klass->info.visual->depth)
{
+ case 1:
+ case 4:
case 8:
klass->info.bpp = 1;
break;