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:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user