]> Pileus Git - ~andy/gtk/blobdiff - gdk/x11/gdkdrawable-x11.c
Don't try to use render if we can't get a picture for the drawable. (Fixes
[~andy/gtk] / gdk / x11 / gdkdrawable-x11.c
index 54db5a89c2150d7ebefc0684f895e3f03e70f271..7aed12ee9b2363f6e98c59336737a9d5ab7b6434 100644 (file)
@@ -1441,7 +1441,8 @@ gdk_x11_draw_pixbuf (GdkDrawable     *drawable,
 
   if (format_type == FORMAT_NONE ||
       !gdk_pixbuf_get_has_alpha (pixbuf) ||
-      (dither == GDK_RGB_DITHER_MAX && gdk_drawable_get_depth (drawable) != 24))
+      (dither == GDK_RGB_DITHER_MAX && gdk_drawable_get_depth (drawable) != 24) ||
+      gdk_x11_drawable_get_picture (drawable) == None)
     {
       GdkDrawable *wrapper = GDK_DRAWABLE_IMPL_X11 (drawable)->wrapper;
       GDK_DRAWABLE_CLASS (parent_class)->draw_pixbuf (wrapper, gc, pixbuf,