mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
ui: Use actualScale to calc minimum window size
This commit is contained in:
parent
993a55abde
commit
2157061479
@ -201,7 +201,7 @@ func (u *userInterface) setScreenSize(width, height, scale int) bool {
|
||||
// To prevent hanging up, return asap if the width is too small.
|
||||
// 252 is an arbitrary number and I guess this is small enough.
|
||||
const minWindowWidth = 252
|
||||
if width*u.windowScale() < minWindowWidth {
|
||||
if width*u.actualScale() < minWindowWidth {
|
||||
u.scale = origScale
|
||||
return false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user