When a canvas with a ratio 4:3 is created and then the canvas element is taken fullscreen, the canvas may be incorrectly scaled e.g. on a 16:10 display.
It would perhaps be better to get the screen size and calculate the necessary margins to keep the aspect ratio of the canvas.
When a canvas with a ratio 4:3 is created and then the canvas element is taken fullscreen, the canvas may be incorrectly scaled e.g. on a 16:10 display.
It would perhaps be better to get the screen size and calculate the necessary margins to keep the aspect ratio of the canvas.