mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
ui: Add TODO
This commit is contained in:
parent
cf6d843572
commit
411721a4da
@ -322,6 +322,7 @@ func (u *userInterface) setScreenSize(width, height int, scale float64) (bool, e
|
||||
// On Windows, giving a too small width doesn't call a callback (#165).
|
||||
// To prevent hanging up, return asap if the width is too small.
|
||||
// 252 is an arbitrary number and I guess this is small enough.
|
||||
// TODO: The same check should be in ui_js.go
|
||||
const minWindowWidth = 252
|
||||
if int(float64(width)*u.actualScreenScale()) < minWindowWidth {
|
||||
u.scale = origScale
|
||||
|
Loading…
Reference in New Issue
Block a user