diff options
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 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} } |