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
This commit is contained in:
CDT 1998 Shawn T. Amundson 1998-07-10 02:09:10 +00:00 committed by Shawn Amundson
parent 26dcaeaf56
commit 524be636e9
8 changed files with 55 additions and 2 deletions

View File

@ -1,3 +1,10 @@
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 (GIMP toolbar now pops up,
just don't create a new image and GIMP now works in 4 bit.)
Thu Jul 9 20:20:04 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* gdk/gdkvisuals.c: 4 bit support, increased available_depths

View File

@ -1,3 +1,10 @@
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 (GIMP toolbar now pops up,
just don't create a new image and GIMP now works in 4 bit.)
Thu Jul 9 20:20:04 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* gdk/gdkvisuals.c: 4 bit support, increased available_depths

View File

@ -1,3 +1,10 @@
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 (GIMP toolbar now pops up,
just don't create a new image and GIMP now works in 4 bit.)
Thu Jul 9 20:20:04 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* gdk/gdkvisuals.c: 4 bit support, increased available_depths

View File

@ -1,3 +1,10 @@
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 (GIMP toolbar now pops up,
just don't create a new image and GIMP now works in 4 bit.)
Thu Jul 9 20:20:04 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* gdk/gdkvisuals.c: 4 bit support, increased available_depths

View File

@ -1,3 +1,10 @@
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 (GIMP toolbar now pops up,
just don't create a new image and GIMP now works in 4 bit.)
Thu Jul 9 20:20:04 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* gdk/gdkvisuals.c: 4 bit support, increased available_depths

View File

@ -1,3 +1,10 @@
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 (GIMP toolbar now pops up,
just don't create a new image and GIMP now works in 4 bit.)
Thu Jul 9 20:20:04 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* gdk/gdkvisuals.c: 4 bit support, increased available_depths

View File

@ -1,3 +1,10 @@
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 (GIMP toolbar now pops up,
just don't create a new image and GIMP now works in 4 bit.)
Thu Jul 9 20:20:04 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* gdk/gdkvisuals.c: 4 bit support, increased available_depths

View File

@ -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;