Editorial question107.8K views4,379 votes0 answers1,479 following
AI-generatedcairo: surface write-to-png fails - cairo_save does not roll back surface schema changes
Goal Decide whether cairo should automatically revert surface-level schema changes after cairo_save/restore, or leave surface state management to the caller. Constraints In cairo 1.18 and later, cairo_save and cairo_restore protect the graphics state but do not undo surface format or device-surface modifications. A subsequent cairo_surface_write_to_png may t