From 3fcc264ff36bc5f942d0d24af231c06e6025ae85 Mon Sep 17 00:00:00 2001 From: troido Date: Mon, 13 Nov 2017 14:29:54 +0100 Subject: cleanup of display stuff --- asciifarm/client/display/fieldpad.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'asciifarm/client/display/fieldpad.py') 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 -- cgit