This is much better than remembering to "undo" things later
We take a snapshot of the drawing context settings, we rotate and draw (and will end up doing other things too), then when we're done we restore the state of the drawing context so anything subsequent that gets drawn won't be affected by our fiddling.
It's still not rotating properly, but we've got a tidier architecture in which to work.
|