mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +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
|
||||
}
|
||||
|
||||
func start(f func(*ebiten.Image) error, width, height int, scale float64, title string) error {
|
||||
return nil
|
||||
func start(f func(*ebiten.Image) error, width, height int, scale float64, title string) {
|
||||
}
|
||||
|
@ -32,7 +32,6 @@ func update() error {
|
||||
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)
|
||||
return nil
|
||||
}
|
||||
|
@ -23,8 +23,11 @@ import (
|
||||
// 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).
|
||||
//
|
||||
// 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 {
|
||||
return start(f, width, height, scale, title)
|
||||
start(f, width, height, scale, title)
|
||||
return nil
|
||||
}
|
||||
|
||||
// Update updates and renders the game.
|
||||
|
Loading…
Reference in New Issue
Block a user