offscreenwindow: Copy old to new pixmap using Cairo

This commit is contained in:
Benjamin Otte 2010-07-17 03:15:33 +02:00
parent b13480702b
commit 2db020890e

View File

@ -873,6 +873,8 @@ gdk_offscreen_window_move_resize_internal (GdkWindow *window,
if (private->width != width ||
private->height != height)
{
cairo_t *cr;
private->width = width;
private->height = height;
@ -882,13 +884,10 @@ gdk_offscreen_window_move_resize_internal (GdkWindow *window,
height,
private->depth);
gc = _gdk_drawable_get_scratch_gc (offscreen->pixmap, FALSE);
gdk_draw_drawable (offscreen->pixmap,
gc,
old_pixmap,
0,0, 0, 0,
-1, -1);
g_object_unref (old_pixmap);
cr = gdk_cairo_create (offscreen->pixmap);
gdk_cairo_set_source_pixmap (cr, old_pixmap, 0, 0);
cairo_paint (cr);
cairo_destroy (cr);
}
if (GDK_WINDOW_IS_MAPPED (private))