Skip to content

recording-surface: Fix offset error

Matthias Clasen requested to merge matthiasc/cairo:fix-recording-to-png into master

When a recording surface with non-zero origin is saved to a png file, it gets cut off. Fix this by setting a device offset when acquiring the source image.

Here is a test: test.c

Output without this fix: before

Output with this fix: after

This may also fix the 10 year old #104 (closed)

Edited by Matthias Clasen

Merge request reports