diff options
author | Matthias Clasen <maclas@gmx.de> | 2004-04-29 05:14:52 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-04-29 05:14:52 +0000 |
commit | 08580edf1687bcbb5715166846d671c709d42ff7 (patch) | |
tree | 03bafaba4a7644300573645c54ae8f384a596402 /gdk/gdkdraw.c | |
parent | 65c0f1460add9fe2ce2eb7f1084dae6499b354b0 (diff) | |
download | gdk-pixbuf-08580edf1687bcbb5715166846d671c709d42ff7.tar.gz |
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)
Diffstat (limited to 'gdk/gdkdraw.c')
-rw-r--r-- | gdk/gdkdraw.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdk/gdkdraw.c b/gdk/gdkdraw.c index 12e1aa32b..7d77eaed0 100644 --- a/gdk/gdkdraw.c +++ b/gdk/gdkdraw.c @@ -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); } |