Commit Graph

4 Commits (d4747a8c800ffbf0d4f52aa8a0444165a2b696c9)

Author SHA1 Message Date
Samuel Mannehed 12565dc4ac Allow autoscale() with zero height or width
Commit 6e7e6f9 stopped the function from running if width or height was
zero, this commit reverts that change. This commit also makes the
resulting canvas 0x0 if autoscale is called with zero. By adding this
special case we can avoid division by zero in the calculations.
4 years ago
Samuel Mannehed 79ab05192b Add check for bad values for Display.autoscale() 4 years ago
Juanjo Diaz 37c17ddbf9 Move support check from display to browser 4 years ago
matt 408c005d3e Initial commit 5 years ago