Commit 86a5f2c3 authored by Alexander Larsson's avatar Alexander Larsson
Browse files

Revert "Gtk: Use gdk_cairo_surface_create_similar"

This reverts commit bb7e8339.
parent 0ed5dbf9
......@@ -395,7 +395,7 @@ _gtk_css_image_get_surface (GtkCssImage *image,
g_return_val_if_fail (surface_height > 0, NULL);
if (target)
result = gdk_cairo_surface_create_similar (target,
result = cairo_surface_create_similar (target,
CAIRO_CONTENT_COLOR_ALPHA,
surface_width,
surface_height);
......
......@@ -175,9 +175,9 @@ draw_from_image (cairo_surface_t *image)
cairo_surface_t *surface;
cairo_t *cr;
surface = gdk_cairo_surface_create_similar (image, CAIRO_CONTENT_COLOR_ALPHA,
cairo_image_surface_get_width (image),
cairo_image_surface_get_height (image));
surface = cairo_surface_create_similar (image, CAIRO_CONTENT_COLOR_ALPHA,
cairo_image_surface_get_width (image),
cairo_image_surface_get_height (image));
cr = cairo_create (surface);
cairo_set_source_surface (cr, image, 0, 0);
......
......@@ -216,9 +216,9 @@ _gtk_theming_background_paint_layer (GtkThemingBackground *bg,
else
surface_height = round (image_height);
surface = gdk_cairo_surface_create_similar (cairo_get_target (cr),
CAIRO_CONTENT_COLOR_ALPHA,
surface_width, surface_height);
surface = cairo_surface_create_similar (cairo_get_target (cr),
CAIRO_CONTENT_COLOR_ALPHA,
surface_width, surface_height);
cr2 = cairo_create (surface);
cairo_translate (cr2,
0.5 * (surface_width - image_width),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment