mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
offscreenwindow: Copy old to new pixmap using Cairo
This commit is contained in:
parent
b13480702b
commit
2db020890e
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user