mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +01:00
ebiten: Refactoring
This commit is contained in:
parent
161b1965ba
commit
54ac6bed1e
4
run.go
4
run.go
@ -165,7 +165,7 @@ func (i *imageDumperGame) Layout(outsideWidth, outsideHeight int) (screenWidth,
|
||||
func RunGame(game Game) error {
|
||||
defer atomic.StoreInt32(&isRunGameEnded_, 1)
|
||||
|
||||
fixWindowPosition(WindowSize())
|
||||
initializeWindowPositionIfNeeded(WindowSize())
|
||||
theUIContext.set(&imageDumperGame{
|
||||
game: game,
|
||||
})
|
||||
@ -190,7 +190,7 @@ func isRunGameEnded() bool {
|
||||
//
|
||||
// TODO: Remove this. In order to remove this, the uiContext should be in another package.
|
||||
func RunGameWithoutMainLoop(game Game) {
|
||||
fixWindowPosition(WindowSize())
|
||||
initializeWindowPositionIfNeeded(WindowSize())
|
||||
theUIContext.set(&imageDumperGame{
|
||||
game: game,
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user