diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-02-17 16:35:36 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-02-17 16:35:36 -0500 |
commit | 60b351b78c930110716b0c9db2227e13704f826d (patch) | |
tree | 3d5d6f69fe416cfd4032c7d672168c965999ec4d /ui/context.go | |
parent | 1892d73161a006182d7ef467e2bfc03c11587cb6 (diff) | |
download | aerc-60b351b78c930110716b0c9db2227e13704f826d.tar.gz |
Polish up grid and add new rendering loop
Diffstat (limited to 'ui/context.go')
-rw-r--r-- | ui/context.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/context.go b/ui/context.go index 9f2e2fe5..e7d9ebe0 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} } |