ui: Use returning values

This commit is contained in:
Hajime Hoshi 2017-06-30 00:37:24 +09:00
parent 1fe2d90d8a
commit d0f086323b

View File

@ -129,7 +129,7 @@ func SetScreenSize(width, height int) bool {
}
r := false
_ = u.runOnMainThread(func() error {
u.setScreenSize(width, height, u.scale)
r = u.setScreenSize(width, height, u.scale)
return nil
})
return r
@ -142,7 +142,7 @@ func SetScreenScale(scale float64) bool {
}
r := false
_ = u.runOnMainThread(func() error {
u.setScreenSize(u.width, u.height, scale)
r = u.setScreenSize(u.width, u.height, scale)
return nil
})
return r