ui: Use actualScale to calc minimum window size

This commit is contained in:
Hajime Hoshi 2016-03-22 12:01:53 +09:00
parent 993a55abde
commit 2157061479

View File

@ -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
}