Fix draw_drawable being offset when using window as source (testgtk text test)

This commit is contained in:
Alexander Larsson 2008-12-05 19:24:55 +01:00 committed by Alexander Larsson
parent ac637d9d15
commit b6e84d3105

View File

@ -2764,6 +2764,13 @@ gdk_window_draw_drawable (GdkDrawable *drawable,
if (GDK_WINDOW_DESTROYED (drawable))
return;
/* By this time the src has been gotten via get_composite_drawable.
If it is a window this implies lots of stuff that we don't want
to do again in the call below. So, we use the impl as the source to
avoid this. */
if (GDK_IS_WINDOW (src))
src = GDK_WINDOW_OBJECT (src)->impl;
/* If we have a backing pixmap draw to that */
if (private->paint_stack)
{