ui: Add TODO

This commit is contained in:
Hajime Hoshi 2016-11-26 02:35:55 +09:00
parent cf6d843572
commit 411721a4da

View File

@ -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). // 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. // To prevent hanging up, return asap if the width is too small.
// 252 is an arbitrary number and I guess this is small enough. // 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 const minWindowWidth = 252
if int(float64(width)*u.actualScreenScale()) < minWindowWidth { if int(float64(width)*u.actualScreenScale()) < minWindowWidth {
u.scale = origScale u.scale = origScale