mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 05:18:01 +02:00
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>
This commit is contained in:
parent
de2c5bfa19
commit
f934491125
1 changed files with 0 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue