Fix context state restoration on destroy
In many cases, the canvas render size is changed by the lib, causing the state stack to be discarded, meaning that we can't use save() and restore() to release the context with its initial state (i.e. before creating the chart). Since we don't need (want) to manually save / restore the context initial state, simply make sure to reset it to the default state to give a fresh context back to the user. That also means we don't need to revert the scale when the pixel device ratio is not 1.
S
Simon Brunel committed
efced4780ce2697d0d44bf1e32a4e2efebaa18e2
Parent: 040b0e1
Committed by Evert Timberg <evert.timberg+github@gmail.com>
on 11/8/2016, 12:16:45 AM