Skip to content

Commit

Permalink
Merge pull request #22 from maxgodfrey2004/fix-rendering
Browse files Browse the repository at this point in the history
Fix instructions requiring terminal resize not rendering
  • Loading branch information
maxgodfrey2004 authored Jan 23, 2020
2 parents bb53639 + e5af8f1 commit 264a5d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions game/renderer.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ func (g *game) Render() {
tWidth, tHeight := termbox.Size()
if g.Width > tWidth || g.Height > tHeight {
renderString(0, 0, []rune("Terminal is too small. Please resize."))
termbox.Flush()
return
}

Expand Down

0 comments on commit 264a5d0

Please sign in to comment.