From 725cc22200842650524fd44607e320be3e92d777 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 17 Nov 2019 21:52:06 +0900 Subject: [PATCH] uidriver/mobile: Rename Render -> Update --- internal/uidriver/mobile/ui.go | 2 +- mobile/ebitenmobileview/impl_mobile.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/uidriver/mobile/ui.go b/internal/uidriver/mobile/ui.go index 5c6e8f5ca..25c33323d 100644 --- a/internal/uidriver/mobile/ui.go +++ b/internal/uidriver/mobile/ui.go @@ -57,7 +57,7 @@ func Get() *UserInterface { return theUI } -func (u *UserInterface) Render() { +func (u *UserInterface) Update() { renderCh <- struct{}{} ctx, cancel := context.WithCancel(context.Background()) go func() { diff --git a/mobile/ebitenmobileview/impl_mobile.go b/mobile/ebitenmobileview/impl_mobile.go index 08abd0b44..87e719602 100644 --- a/mobile/ebitenmobileview/impl_mobile.go +++ b/mobile/ebitenmobileview/impl_mobile.go @@ -38,6 +38,6 @@ func update() error { default: } - mobile.Get().Render() + mobile.Get().Update() return nil }