mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-23 17:32:02 +01:00
mobile/ebitenmobileview: Fix error messages
This commit is contained in:
parent
899fc38d23
commit
dfb89e13e3
@ -32,7 +32,7 @@ func Layout(viewWidth, viewHeight int, viewRectSetter ViewRectSetter) {
|
|||||||
defer theState.m.Unlock()
|
defer theState.m.Unlock()
|
||||||
|
|
||||||
if theState.game == nil {
|
if theState.game == nil {
|
||||||
panic("ebitenmobileview: SetGame must be called before ebitenLayout")
|
panic("ebitenmobileview: SetGame must be called before Layout")
|
||||||
}
|
}
|
||||||
|
|
||||||
w, h := theState.game.Layout(int(viewWidth), int(viewHeight))
|
w, h := theState.game.Layout(int(viewWidth), int(viewHeight))
|
||||||
|
Loading…
Reference in New Issue
Block a user