summaryrefslogtreecommitdiff
path: root/gsk/gskcairorenderer.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2017-11-04 20:05:56 +0100
committerTimm Bäder <mail@baedert.org>2017-12-21 18:25:52 +0100
commitb488329104a683c6aa2eb487f8f427c4d535fa1f (patch)
treefd5ffb55a915df95b8e964cf18e5dddee32772c2 /gsk/gskcairorenderer.c
parent19871cfd68af11780d4549430ddeab3644d0bf76 (diff)
downloadgtk+-b488329104a683c6aa2eb487f8f427c4d535fa1f.tar.gz
GskRenderer: Remove viewport property
Diffstat (limited to 'gsk/gskcairorenderer.c')
-rw-r--r--gsk/gskcairorenderer.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/gsk/gskcairorenderer.c b/gsk/gskcairorenderer.c
index c4aa4e9ad7..bc596e22a3 100644
--- a/gsk/gskcairorenderer.c
+++ b/gsk/gskcairorenderer.c
@@ -99,7 +99,7 @@ gsk_cairo_renderer_render (GskRenderer *renderer,
GskRenderNode *root)
{
GdkDrawingContext *context = gsk_renderer_get_drawing_context (renderer);
- graphene_rect_t viewport;
+ GdkWindow *window = gsk_renderer_get_window (renderer);
cairo_t *cr;
@@ -107,17 +107,13 @@ gsk_cairo_renderer_render (GskRenderer *renderer,
g_return_if_fail (cr != NULL);
- gsk_renderer_get_viewport (renderer, &viewport);
-
if (GSK_RENDER_MODE_CHECK (GEOMETRY))
{
cairo_save (cr);
cairo_set_operator (cr, CAIRO_OPERATOR_OVER);
cairo_rectangle (cr,
- viewport.origin.x,
- viewport.origin.y,
- viewport.size.width,
- viewport.size.height);
+ 0, 0,
+ gdk_window_get_width (window), gdk_window_get_height (window));
cairo_set_source_rgba (cr, 0, 0, 0.85, 0.5);
cairo_stroke (cr);
cairo_restore (cr);