aboutsummaryrefslogtreecommitdiff
path: root/ui/context.go
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-02-17 16:35:36 -0500
committerDrew DeVault <sir@cmpwn.com>2018-02-17 16:35:36 -0500
commit60b351b78c930110716b0c9db2227e13704f826d (patch)
tree3d5d6f69fe416cfd4032c7d672168c965999ec4d /ui/context.go
parent1892d73161a006182d7ef467e2bfc03c11587cb6 (diff)
Polish up grid and add new rendering loop
Diffstat (limited to 'ui/context.go')
-rw-r--r--ui/context.go3
1 files changed, 1 insertions, 2 deletions
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}
}