From 60b351b78c930110716b0c9db2227e13704f826d Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sat, 17 Feb 2018 16:35:36 -0500 Subject: Polish up grid and add new rendering loop --- ui/context.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ui/context.go') diff --git a/ui/context.go b/ui/context.go index 9f2e2fe..e7d9ebe 100644 --- a/ui/context.go +++ b/ui/context.go @@ -22,8 +22,7 @@ func (ctx *Context) Height() int { return ctx.height } -func NewContext() *Context { - width, height := termbox.Size() +func NewContext(width, height int) *Context { return &Context{0, 0, width, height} } -- cgit 1.4.1-2-gfad0