]> Pileus Git - ~andy/gtk/commitdiff
Use depth - 1 to index the cached gcs, not depth. (#139494)
authorMatthias Clasen <maclas@gmx.de>
Thu, 29 Apr 2004 05:14:52 +0000 (05:14 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Thu, 29 Apr 2004 05:14:52 +0000 (05:14 +0000)
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)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/gdkdraw.c

index 4e7777c71d35be501cb47be8261e15c299855ccf..bc358b3888567b52e9bdca4141b7f09ffcb0da71 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 4e7777c71d35be501cb47be8261e15c299855ccf..bc358b3888567b52e9bdca4141b7f09ffcb0da71 100644 (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.
index 4e7777c71d35be501cb47be8261e15c299855ccf..bc358b3888567b52e9bdca4141b7f09ffcb0da71 100644 (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.
index 4e7777c71d35be501cb47be8261e15c299855ccf..bc358b3888567b52e9bdca4141b7f09ffcb0da71 100644 (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.
index 4e7777c71d35be501cb47be8261e15c299855ccf..bc358b3888567b52e9bdca4141b7f09ffcb0da71 100644 (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.
index 12e1aa32bd0e885389876ffa755764fb2ad6cb1c..7d77eaed01c6daacea0d466701fa2a52cdd9e4f6 100644 (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);
        }