mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 10:48:53 +01:00
ui: Rename Main -> Run
This commit is contained in:
parent
571d67f967
commit
128dcaa342
@ -76,11 +76,11 @@ func initialize() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func Main(ch <-chan error) error {
|
||||
return currentUI.main(ch)
|
||||
func Run(ch <-chan error) error {
|
||||
return currentUI.run(ch)
|
||||
}
|
||||
|
||||
func (u *userInterface) main(ch <-chan error) error {
|
||||
func (u *userInterface) run(ch <-chan error) error {
|
||||
// TODO: Check this is done on the main thread.
|
||||
for {
|
||||
select {
|
||||
|
@ -258,7 +258,7 @@ func devicePixelRatio() float64 {
|
||||
return ratio
|
||||
}
|
||||
|
||||
func Main(ch <-chan error) error {
|
||||
func Run(ch <-chan error) error {
|
||||
return <-ch
|
||||
}
|
||||
|
||||
|
@ -24,7 +24,7 @@ import (
|
||||
"github.com/hajimehoshi/ebiten/internal/graphics/opengl"
|
||||
)
|
||||
|
||||
func Main(ch <-chan error) error {
|
||||
func Run(ch <-chan error) error {
|
||||
return errors.New("ui: don't call this: use RunWithoutMainLoop instead of Run")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user