summaryrefslogtreecommitdiff
path: root/asciifarm/client/display/screen.py
diff options
context:
space:
mode:
Diffstat (limited to 'asciifarm/client/display/screen.py')
-rw-r--r--asciifarm/client/display/screen.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/asciifarm/client/display/screen.py b/asciifarm/client/display/screen.py
index e806b2d..21d7200 100644
--- a/asciifarm/client/display/screen.py
+++ b/asciifarm/client/display/screen.py
@@ -52,7 +52,8 @@ class Screen:
def makeWin(self, x, y, width, height):
if width < 1 or height < 1:
win = None
- win = curses.newwin(height, width, y, x)
+ else:
+ win = curses.newwin(height, width, y, x)
return Window(win, self.colours)
def getWin(self, name):