Invalidate cairo surface if resizing is not supported for target

While X11 surfaces can be resized, this is not the case for Quartz
surfaces.  Instead of resizing we will invalidate the surface instead.
By giving _gdk_windowing_set_cairo_surface_size() a boolean return
value, we can signal back whether or not resizing was possible.  If not
possible, we invalidate the surface.
This commit is contained in:
Kristian Rietveld
2010-08-08 18:17:29 +02:00
committed by Benjamin Otte
parent 9c6696dfcc
commit d819bc4814
5 changed files with 21 additions and 11 deletions

View File

@ -670,12 +670,13 @@ gdk_win32_ref_cairo_surface (GdkDrawable *drawable)
return impl->cairo_surface;
}
void
gboolean
_gdk_windowing_set_cairo_surface_size (cairo_surface_t *surface,
gint width,
gint height)
{
// Do nothing. The surface size is determined by the DC
return FALSE;
}
static gint