Commit 1b6fb008 authored by Shawn Amundson's avatar Shawn Amundson

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
parent 32fbb7b8
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.
......
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.
......
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.
......
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.
......
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.
......
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.
......
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.
......
......@@ -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++)
{
......
......@@ -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)
......
......@@ -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++)
{
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment