fix context

This commit is contained in:
2019-11-13 02:59:58 +03:00
parent e0b4d000d3
commit 8b4844211b
3 changed files with 8 additions and 6 deletions

View File

@ -3,17 +3,17 @@ package mainwindow
import (
"fmt"
"lab.zaar.be/thefish/alchemyst-go/engine/types"
"lab.zaar.be/thefish/alchemyst-go/util"
"lab.zaar.be/thefish/alchemyst-go/util/appctx"
blt "lab.zaar.be/thefish/bearlibterminal"
)
type MainWindow struct {
types.Rect
ctx util.ClientCtx
ctx appctx.ClientCtx
layers map[string]types.Renderable
}
func Init(ctx util.ClientCtx) *MainWindow {
func Init(ctx appctx.ClientCtx) *MainWindow {
ctx.Logger().Info().Msgf("Opening main window...")
mw := MainWindow{ctx: ctx, layers: make(map[string]types.Renderable, 0)}
mw.Open()