mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-13 04:22:05 +01:00
mobile: Start now returns nil
This commit is contained in:
parent
5c8cbab017
commit
112f1419d1
@ -26,6 +26,5 @@ func update() error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func start(f func(*ebiten.Image) error, width, height int, scale float64, title string) error {
|
func start(f func(*ebiten.Image) error, width, height int, scale float64, title string) {
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,6 @@ func update() error {
|
|||||||
return ui.Render(chError)
|
return ui.Render(chError)
|
||||||
}
|
}
|
||||||
|
|
||||||
func start(f func(*ebiten.Image) error, width, height int, scale float64, title string) error {
|
func start(f func(*ebiten.Image) error, width, height int, scale float64, title string) {
|
||||||
chError = ebiten.RunWithoutMainLoop(f, width, height, scale, title)
|
chError = ebiten.RunWithoutMainLoop(f, width, height, scale, title)
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
@ -23,8 +23,11 @@ import (
|
|||||||
// Different from ebiten.Run, this invokes only the game loop and not the main (UI) loop.
|
// Different from ebiten.Run, this invokes only the game loop and not the main (UI) loop.
|
||||||
//
|
//
|
||||||
// The unit of width/height is device-independent pixel (dp on Android and point on iOS).
|
// The unit of width/height is device-independent pixel (dp on Android and point on iOS).
|
||||||
|
//
|
||||||
|
// Start always returns nil as of 1.5.0-alpha.
|
||||||
func Start(f func(*ebiten.Image) error, width, height int, scale float64, title string) error {
|
func Start(f func(*ebiten.Image) error, width, height int, scale float64, title string) error {
|
||||||
return start(f, width, height, scale, title)
|
start(f, width, height, scale, title)
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update updates and renders the game.
|
// Update updates and renders the game.
|
||||||
|
Loading…
Reference in New Issue
Block a user