Open bhomass opened 1 year ago
if I use canvas.scale(0.125), and call canvas.clear(), it only clears top left hand corner, which is 1/8 the width and height of the canvas.
Thanks for reporting. Indeed, clear is implemented to do the equivalent of clear_rect(0, 0, canvas.width, canvas.height) which may not take the current scale into account.
clear_rect(0, 0, canvas.width, canvas.height)
if I use canvas.scale(0.125), and call canvas.clear(), it only clears top left hand corner, which is 1/8 the width and height of the canvas.