diff options
author | Benjamin Otte <otte@redhat.com> | 2018-04-12 02:10:22 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2018-04-24 23:16:12 +0200 |
commit | a83487a0c4e57063f02f7e3edecb2af9194d6c29 (patch) | |
tree | 100ea6a4339d07e0d3ce7894c9b9e68549eed236 /gsk/gskcairorenderer.c | |
parent | 52de880c1c1c64c7f2393ed2f42ca45ee3c7d7c8 (diff) | |
download | gtk+-a83487a0c4e57063f02f7e3edecb2af9194d6c29.tar.gz |
cairocontext: Move a function
A function of GdkDrawingContext is only used when drawing with Cairo, so
move it to GdkCairoContext.
Diffstat (limited to 'gsk/gskcairorenderer.c')
-rw-r--r-- | gsk/gskcairorenderer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gsk/gskcairorenderer.c b/gsk/gskcairorenderer.c index f5871e49a8..43d47d1aac 100644 --- a/gsk/gskcairorenderer.c +++ b/gsk/gskcairorenderer.c @@ -115,7 +115,7 @@ gsk_cairo_renderer_render (GskRenderer *renderer, context = gdk_surface_begin_draw_frame (surface, GDK_DRAW_CONTEXT (self->cairo_context), region); - cr = gdk_drawing_context_get_cairo_context (context); + cr = gdk_cairo_context_cairo_create (self->cairo_context); g_return_if_fail (cr != NULL); @@ -135,6 +135,8 @@ gsk_cairo_renderer_render (GskRenderer *renderer, gsk_cairo_renderer_do_render (renderer, cr, root); + cairo_destroy (cr); + gdk_surface_end_draw_frame (surface, context); } |