Use depth - 1 to index the cached gcs, not depth. (#139494)

Thu Apr 29 01:09:50 2004  Matthias Clasen  <maclas@gmx.de>

	* gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): Use depth - 1
	to index the cached gcs, not depth.  (#139494)
This commit is contained in:
Matthias Clasen 2004-04-29 05:14:52 +00:00 committed by Matthias Clasen
parent 65c0f1460a
commit 08580edf16
6 changed files with 28 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Thu Apr 29 01:09:50 2004 Matthias Clasen <maclas@gmx.de>
* gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): Use depth - 1
to index the cached gcs, not depth. (#139494)
2004-04-28 Matthias Clasen <mclasen@redhat.com>
* gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): Docs typo fix.

View File

@ -1,3 +1,8 @@
Thu Apr 29 01:09:50 2004 Matthias Clasen <maclas@gmx.de>
* gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): Use depth - 1
to index the cached gcs, not depth. (#139494)
2004-04-28 Matthias Clasen <mclasen@redhat.com>
* gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): Docs typo fix.

View File

@ -1,3 +1,8 @@
Thu Apr 29 01:09:50 2004 Matthias Clasen <maclas@gmx.de>
* gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): Use depth - 1
to index the cached gcs, not depth. (#139494)
2004-04-28 Matthias Clasen <mclasen@redhat.com>
* gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): Docs typo fix.

View File

@ -1,3 +1,8 @@
Thu Apr 29 01:09:50 2004 Matthias Clasen <maclas@gmx.de>
* gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): Use depth - 1
to index the cached gcs, not depth. (#139494)
2004-04-28 Matthias Clasen <mclasen@redhat.com>
* gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): Docs typo fix.

View File

@ -1,3 +1,8 @@
Thu Apr 29 01:09:50 2004 Matthias Clasen <maclas@gmx.de>
* gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): Use depth - 1
to index the cached gcs, not depth. (#139494)
2004-04-28 Matthias Clasen <mclasen@redhat.com>
* gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): Docs typo fix.

View File

@ -1562,7 +1562,7 @@ _gdk_drawable_get_scratch_gc (GdkDrawable *drawable,
g_return_val_if_fail (!screen->closed, NULL);
depth = gdk_drawable_get_depth (drawable);
depth = gdk_drawable_get_depth (drawable) - 1;
if (graphics_exposures)
{
@ -1572,7 +1572,8 @@ _gdk_drawable_get_scratch_gc (GdkDrawable *drawable,
GdkGCValuesMask mask;
values.graphics_exposures = TRUE;
mask = GDK_GC_EXPOSURES;
mask = GDK_GC_EXPOSURES;
screen->exposure_gcs[depth] =
gdk_gc_new_with_values (drawable, &values, mask);
}