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
This commit is contained in:
Shawn Amundson 1997-12-20 08:39:21 +00:00
parent 32fbb7b821
commit 1b6fb00808
11 changed files with 38 additions and 8 deletions

View File

@ -1,4 +1,8 @@
Thu Dec 18 23:46:11 CST 1997 Shawn T. Amundson <amundson@gimp.org>
* GDK support for 1 bpp depth screens.
Thu Dec 18 23:46:11 CST 1997 Shawn T. Amundson <amundson@gimp.org>
* Changes from Bolliet Jerome <bolliet@in2p3.fr> to gtktree.

View File

@ -1,4 +1,8 @@
Thu Dec 18 23:46:11 CST 1997 Shawn T. Amundson <amundson@gimp.org>
* GDK support for 1 bpp depth screens.
Thu Dec 18 23:46:11 CST 1997 Shawn T. Amundson <amundson@gimp.org>
* Changes from Bolliet Jerome <bolliet@in2p3.fr> to gtktree.

View File

@ -1,4 +1,8 @@
Thu Dec 18 23:46:11 CST 1997 Shawn T. Amundson <amundson@gimp.org>
* GDK support for 1 bpp depth screens.
Thu Dec 18 23:46:11 CST 1997 Shawn T. Amundson <amundson@gimp.org>
* Changes from Bolliet Jerome <bolliet@in2p3.fr> to gtktree.

View File

@ -1,4 +1,8 @@
Thu Dec 18 23:46:11 CST 1997 Shawn T. Amundson <amundson@gimp.org>
* GDK support for 1 bpp depth screens.
Thu Dec 18 23:46:11 CST 1997 Shawn T. Amundson <amundson@gimp.org>
* Changes from Bolliet Jerome <bolliet@in2p3.fr> to gtktree.

View File

@ -1,4 +1,8 @@
Thu Dec 18 23:46:11 CST 1997 Shawn T. Amundson <amundson@gimp.org>
* GDK support for 1 bpp depth screens.
Thu Dec 18 23:46:11 CST 1997 Shawn T. Amundson <amundson@gimp.org>
* Changes from Bolliet Jerome <bolliet@in2p3.fr> to gtktree.

View File

@ -1,4 +1,8 @@
Thu Dec 18 23:46:11 CST 1997 Shawn T. Amundson <amundson@gimp.org>
* GDK support for 1 bpp depth screens.
Thu Dec 18 23:46:11 CST 1997 Shawn T. Amundson <amundson@gimp.org>
* Changes from Bolliet Jerome <bolliet@in2p3.fr> to gtktree.

View File

@ -1,4 +1,8 @@
Thu Dec 18 23:46:11 CST 1997 Shawn T. Amundson <amundson@gimp.org>
* GDK support for 1 bpp depth screens.
Thu Dec 18 23:46:11 CST 1997 Shawn T. Amundson <amundson@gimp.org>
* Changes from Bolliet Jerome <bolliet@in2p3.fr> to gtktree.

View File

@ -182,7 +182,8 @@ gdk_colormap_get_system (void)
xpalette[i].blue = 0;
}
XQueryColors (gdk_display, private->xcolormap, xpalette, 256);
XQueryColors (gdk_display, private->xcolormap, xpalette,
private->visual->colormap_size);
for (i = 0; i < 256; i++)
{

View File

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

View File

@ -182,7 +182,8 @@ gdk_colormap_get_system (void)
xpalette[i].blue = 0;
}
XQueryColors (gdk_display, private->xcolormap, xpalette, 256);
XQueryColors (gdk_display, private->xcolormap, xpalette,
private->visual->colormap_size);
for (i = 0; i < 256; i++)
{

View File

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