summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortroido <troido@hotmail.com>2017-12-28 23:42:55 +0100
committertroido <troido@hotmail.com>2017-12-28 23:42:55 +0100
commit26c5eb315a4512a53a51a85abf4c0385b978c2f5 (patch)
tree29b46314550e65d67efcd6bcd8ad91e289cec5d3
parent1cca972f295b469ff2ecf0cc53846f49d9ac56cf (diff)
larger field does not show anymore when smaller field is drawn
-rw-r--r--asciifarm/client/display/fieldpad.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/asciifarm/client/display/fieldpad.py b/asciifarm/client/display/fieldpad.py
index cb20285..a7c5c45 100644
--- a/asciifarm/client/display/fieldpad.py
+++ b/asciifarm/client/display/fieldpad.py
@@ -19,7 +19,10 @@ class FieldPad:
def resize(self, width, height):
self.size = (width, height)
- self.pad.resize(height+1, width*self.charSize+1)
+ self.pad.resize(height+1, width*self.charSize)
+ if self.win:
+ self.win.erase()
+ self.win.noutrefresh()
def changeCell(self, x, y, char, colour=None, bgcolour=0):
if colour != None and self.colours: