g_return_val_if_fail (!screen->closed, NULL);
- depth = gdk_drawable_get_depth (drawable);
+ depth = gdk_drawable_get_depth (drawable) - 1;
if (graphics_exposures)
{
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);
}