mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +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
|
r := false
|
||||||
_ = u.runOnMainThread(func() error {
|
_ = u.runOnMainThread(func() error {
|
||||||
u.setScreenSize(width, height, u.scale)
|
r = u.setScreenSize(width, height, u.scale)
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
return r
|
return r
|
||||||
@ -142,7 +142,7 @@ func SetScreenScale(scale float64) bool {
|
|||||||
}
|
}
|
||||||
r := false
|
r := false
|
||||||
_ = u.runOnMainThread(func() error {
|
_ = u.runOnMainThread(func() error {
|
||||||
u.setScreenSize(u.width, u.height, scale)
|
r = u.setScreenSize(u.width, u.height, scale)
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
return r
|
return r
|
||||||
|
Loading…
Reference in New Issue
Block a user