forked from AuroraMiddleware/gtk
Fix draw_drawable being offset when using window as source (testgtk text test)
This commit is contained in:
parent
ac637d9d15
commit
b6e84d3105
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user