Gdk: fix wrong user_data handling in resize_cairo_surface()

Instead of destroying the surface in the backend if this is
unable to resize, let the core code do it, and do it properly.

Based on a patch by Benjamin Otte.

https://bugzilla.gnome.org/show_bug.cgi?id=725172
This commit is contained in:
Giovanni Campagna
2014-02-26 00:02:04 +01:00
parent d5196ded2f
commit ad2f96ff48
8 changed files with 29 additions and 31 deletions

View File

@ -796,16 +796,14 @@ gdk_win32_window_destroy (GdkWindow *window,
}
}
static cairo_surface_t *
static gboolean
gdk_win32_window_resize_cairo_surface (GdkWindow *window,
cairo_surface_t *surface,
gint width,
gint height)
{
/* XXX: Make Cairo surface use DC clip */
cairo_surface_destroy (surface);
return NULL;
return FALSE;
}
static void