Fix wrong ratio on init
PR for #1795 ; still fails on Diagnostics tests.
The diagnostics tests fail because:
- diagnostics calls
canvas.portrait()
-
canvas.portrait()
callsbackend.portrait()
with height/width from updatedcanvasinfo
function -
backend.portrait()
callsbackend.resize_or_rotate_window
with height/width -
backend.resize_or_rotate_window
setsbgX
andbgY
with the updated height/width 🐞
I'm probably going to try updating canvas.portrait
to just update the size
attribute on the canvas if height/width was not specified; that will make all of the output functions correctly flip the dimensions when needed, and prevent the vicious chain of bugs.