From 405ad9a1368d507a4cc3c3a533a51ed1fbcde6ab Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 28 May 2016 19:00:50 +0900 Subject: [PATCH] mobile: Remove viewID arg --- examples/mobile/main_mobile.go | 4 ++-- mobile/run.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/mobile/main_mobile.go b/examples/mobile/main_mobile.go index a85a70c2f..4fe7d6def 100644 --- a/examples/mobile/main_mobile.go +++ b/examples/mobile/main_mobile.go @@ -33,6 +33,6 @@ import ( type EventDispatcher mobile.EventDispatcher -func Start(viewID int) (EventDispatcher, error) { - return mobile.Start(example.Update, example.ScreenWidth, example.ScreenHeight, 2, "Mobile (Ebiten Demo)", viewID) +func Start() (EventDispatcher, error) { + return mobile.Start(example.Update, example.ScreenWidth, example.ScreenHeight, 2, "Mobile (Ebiten Demo)") } diff --git a/mobile/run.go b/mobile/run.go index 3657f89d0..4f69c66d7 100644 --- a/mobile/run.go +++ b/mobile/run.go @@ -40,7 +40,7 @@ type EventDispatcher interface { // Start starts the game and returns immediately. // // Different from ebiten.Run, this invokes only the game loop and not the main (UI) loop. -func Start(f func(*ebiten.Image) error, width, height, scale int, title string, viewID int) (EventDispatcher, error) { +func Start(f func(*ebiten.Image) error, width, height, scale int, title string) (EventDispatcher, error) { chError = ebiten.RunWithoutMainLoop(f, width, height, scale, title) return &eventDispatcher{}, nil }