summaryrefslogtreecommitdiff
path: root/gsk/gskcairorenderer.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2016-12-11 01:23:02 +0100
committerBenjamin Otte <otte@redhat.com>2016-12-20 18:01:09 +0100
commit52d2faef8821a8cff31cd66301018c707a7ef04e (patch)
tree7ae973059a2d719c5800aade5379150b696de936 /gsk/gskcairorenderer.c
parentd1b80a6baa39f2a6b9be995b49155f24962aca11 (diff)
downloadgtk+-52d2faef8821a8cff31cd66301018c707a7ef04e.tar.gz
gsk: Add gsk_cairo_node_new()
Split off Cairo drawn content nodes and require you to allocate them using this new function.
Diffstat (limited to 'gsk/gskcairorenderer.c')
-rw-r--r--gsk/gskcairorenderer.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gsk/gskcairorenderer.c b/gsk/gskcairorenderer.c
index 5a31814eec..0d3c66e64d 100644
--- a/gsk/gskcairorenderer.c
+++ b/gsk/gskcairorenderer.c
@@ -94,8 +94,7 @@ gsk_cairo_renderer_render_node (GskCairoRenderer *self,
pop_group = TRUE;
}
- GSK_NOTE (CAIRO, g_print ("Rendering surface %p for node %s[%p] at %g, %g\n",
- gsk_render_node_get_surface (node),
+ GSK_NOTE (CAIRO, g_print ("Rendering node %s[%p] at %g, %g\n",
node->name,
node,
frame.origin.x, frame.origin.y));
@@ -110,7 +109,7 @@ gsk_cairo_renderer_render_node (GskCairoRenderer *self,
}
else
{
- cairo_set_source_surface (cr, gsk_render_node_get_surface (node), frame.origin.x, frame.origin.y);
+ cairo_set_source_surface (cr, gsk_cairo_node_get_surface (node), frame.origin.x, frame.origin.y);
cairo_paint (cr);
}