ui: run in background

This commit is contained in:
2019-12-29 19:41:20 +00:00
parent d1a1c50afc
commit 51e066ade1

View File

@@ -26,6 +26,8 @@ type Window struct {
//
// ebiten assumes a single window, so only call this once...
func NewWindow(title string) (*Window, error) {
ebiten.SetRunnableInBackground(true)
return &Window{
Title: title,
KeyUpHandlers: make(map[ebiten.Key]func()),