summaryrefslogtreecommitdiff
path: root/boilerplate
diff options
context:
space:
mode:
authorUli Schlachter <psychon@znc.in>2011-02-13 19:40:57 +0100
committerUli Schlachter <psychon@znc.in>2011-03-04 16:37:13 +0100
commitf9344911250ea347fb0eb54d7ab1f97c8f685a20 (patch)
tree6414e0adfae16c9b426c7753d959ba384992adec /boilerplate
parentde2c5bfa19ce6b3fda50bca3445aabc040947bc9 (diff)
xcb boilerplate: Handle device offsets correctly
When running cairo-test-suite with "-a", backends are also tested with a non-zero device offset. However, for "xcb-window&" the boilerplate incorrectly overwrote the device offset with a zero offset again. This caused all test results to be offset by 25 pixels which obviously makes all tests fail. Just removing the call to cairo_surface_set_device_offset solves the problem. Signed-off-by: Uli Schlachter <psychon@znc.in>
Diffstat (limited to 'boilerplate')
-rw-r--r--boilerplate/cairo-boilerplate-xcb.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/boilerplate/cairo-boilerplate-xcb.c b/boilerplate/cairo-boilerplate-xcb.c
index b1bf4de4f..c5dee8ee9 100644
--- a/boilerplate/cairo-boilerplate-xcb.c
+++ b/boilerplate/cairo-boilerplate-xcb.c
@@ -635,7 +635,6 @@ _cairo_boilerplate_xcb_finish_surface (cairo_surface_t *surface)
cairo_t *cr;
cr = cairo_create (xtc->surface);
- cairo_surface_set_device_offset (surface, 0, 0);
cairo_set_source_surface (cr, surface, 0, 0);
cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
cairo_paint (cr);