diff options
author | Carl Worth <cworth@cworth.org> | 2013-02-01 14:58:43 +1100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-02-01 16:11:47 +1100 |
commit | a6fd4076267be5aabe8adc7da56105e520371476 (patch) | |
tree | 66bec4a3d89d0822fff402503d9ce0071abf9bdb /divelist.c | |
parent | 7e7cbb0dce33f8527cb348e020f4800b0482f39e (diff) | |
download | subsurface-a6fd4076267be5aabe8adc7da56105e520371476.tar.gz |
print: Use cairo_save/cairo_restore to manage temporary cairo changes
The print_weight_data function was making several cairo_translate
calls and then doing some final cairo_translate calls with the goal of
manually undoing any changes to cairo's state. Obviously, this is
fragile.
Cairo provides save/restore calls which solve this problem in a robust
way. Switch to using these instead.
Signed-off-by: Carl Worth <cworth@cworth.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divelist.c')
0 files changed, 0 insertions, 0 deletions