* Returns: a pointer to the newly allocated surface. The caller
* owns the surface and should call cairo_surface_destroy() when done
* with it.
+ *
+ * Deprecated: 4.12: Create a suitable cairo image surface yourself
*/
cairo_surface_t *
gdk_surface_create_similar_surface (GdkSurface *surface,
double *y,
GdkModifierType *mask);
-GDK_AVAILABLE_IN_ALL
+GDK_DEPRECATED_IN_4_12
cairo_surface_t *
gdk_surface_create_similar_surface (GdkSurface *surface,
cairo_content_t content,
g_clear_pointer (&self->db_surface, cairo_surface_destroy);
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
self->db_surface = gdk_surface_create_similar_surface (surface,
cairo_surface_get_content (self->window_surface),
self->db_width,
self->db_height);
+G_GNUC_END_IGNORE_DEPRECATIONS
}
/* Double-buffered windows paint on a DB surface.
cairo_region_get_extents (region, &clip_box);
self->window_surface = create_cairo_surface_for_surface (surface);
+
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
self->paint_surface = gdk_surface_create_similar_surface (surface,
cairo_surface_get_content (self->window_surface),
MAX (clip_box.width, 1),
MAX (clip_box.height, 1));
+G_GNUC_END_IGNORE_DEPRECATIONS
sx = sy = 1;
cairo_surface_get_device_scale (self->paint_surface, &sx, &sy);