diff options
| author | troido <troido@hotmail.com> | 2017-11-13 14:29:54 +0100 |
|---|---|---|
| committer | troido <troido@hotmail.com> | 2017-11-13 14:29:54 +0100 |
| commit | 3fcc264ff36bc5f942d0d24af231c06e6025ae85 (patch) | |
| tree | f21787e387f215658b10acf25ca9472f9cfd9538 /asciifarm/client/display/fieldpad.py | |
| parent | a29876590bf97c9cf0b1e8a8760481a435a3a46c (diff) | |
cleanup of display stuff
Diffstat (limited to 'asciifarm/client/display/fieldpad.py')
| -rw-r--r-- | asciifarm/client/display/fieldpad.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/asciifarm/client/display/fieldpad.py b/asciifarm/client/display/fieldpad.py index e9e3ee1..1c749b6 100644 --- a/asciifarm/client/display/fieldpad.py +++ b/asciifarm/client/display/fieldpad.py @@ -13,7 +13,6 @@ class FieldPad: self.center = (0, 0) self.colours = colours self.changed = False - #self.lastView = None def resize(self, width, height): self.size = (width, height) @@ -38,10 +37,9 @@ class FieldPad: def _roundWidth(self, x): return x // self.charSize * self.charSize - def update(self, win, force=False): + def update(self, win, force): if not self.changed and not force or not win: return - #self.lastView = (x, y, xmax, ymax) height, width = win.getmaxyx() y, x = win.getparyx() xmax = x + width |
