mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
ui: Use returning values
This commit is contained in:
parent
1fe2d90d8a
commit
d0f086323b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user