From e5af8f1b7d7eeaea2e94ea9a3304badbf85f4b93 Mon Sep 17 00:00:00 2001 From: Max Godfrey <1020167@student.ccgs.wa.edu.au> Date: Thu, 23 Jan 2020 14:42:21 +0800 Subject: [PATCH] Fix instructions requiring terminal resize not rendering --- game/renderer.go | 1 + 1 file changed, 1 insertion(+) diff --git a/game/renderer.go b/game/renderer.go index 0fdcf17..602c721 100644 --- a/game/renderer.go +++ b/game/renderer.go @@ -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 }