diff options
author | Owen Taylor <otaylor@redhat.com> | 2005-05-07 18:51:18 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2005-05-07 18:51:18 +0000 |
commit | 274e49f37e16830d4eed74092653062d67ae78cd (patch) | |
tree | cec385199452bc0f0c5ec41d962eaca5015dd495 /gdk/gdkgc.c | |
parent | 778b99a403c1a69e33f96cd140666fe7278195e5 (diff) | |
download | gtk+-274e49f37e16830d4eed74092653062d67ae78cd.tar.gz |
Change prototype to match cairo_set_source_surface().
2005-05-07 Owen Taylor <otaylor@redhat.com>
* gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h (gdk_pixbuf_set_as_cairo_source):
Change prototype to match cairo_set_source_surface().
* gdk/gdkdraw.c gdk/gdkgc.c gdk/gdkpixbuf-render.c gdk/gdkwindow.c
gtk/gtkhsv.c tests/testcairo.c.
Diffstat (limited to 'gdk/gdkgc.c')
-rw-r--r-- | gdk/gdkgc.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gdk/gdkgc.c b/gdk/gdkgc.c index 50179d4110..8c386938cc 100644 --- a/gdk/gdkgc.c +++ b/gdk/gdkgc.c @@ -1044,14 +1044,13 @@ make_stipple_tile_surface (cairo_t *cr, alpha_surface = _gdk_drawable_ref_cairo_surface (stipple); - surface = cairo_surface_create_similar (cairo_get_target_surface (cr), + surface = cairo_surface_create_similar (cairo_get_target (cr), CAIRO_FORMAT_ARGB32, width, height); - tmp_cr = cairo_create (); - cairo_set_target_surface (tmp_cr, surface); + tmp_cr = cairo_create (surface); - cairo_set_operator (tmp_cr, CAIRO_OPERATOR_SRC); + cairo_set_operator (tmp_cr, CAIRO_OPERATOR_SOURCE); if (background) gdk_cairo_set_source_color (tmp_cr, background); |