diff options
| author | troido <troido@hotmail.com> | 2017-11-13 22:06:45 +0100 |
|---|---|---|
| committer | troido <troido@hotmail.com> | 2017-11-13 22:06:45 +0100 |
| commit | 17fe4e7c659166af17ced4a97e00d83a6ca91750 (patch) | |
| tree | 0d2b9541bcf8fdf7521c0014b33f9d54a3f663b6 /asciifarm | |
| parent | 3fcc264ff36bc5f942d0d24af231c06e6025ae85 (diff) | |
centered field in client
Diffstat (limited to 'asciifarm')
| -rw-r--r-- | asciifarm/client/display/fieldpad.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/asciifarm/client/display/fieldpad.py b/asciifarm/client/display/fieldpad.py index 1c749b6..4445aba 100644 --- a/asciifarm/client/display/fieldpad.py +++ b/asciifarm/client/display/fieldpad.py @@ -50,7 +50,7 @@ class FieldPad: self._roundWidth(self.getWidth()-width), self._roundWidth(self.center[0]*self.charSize - int(width/2)))), y, - x, + x + max(0, (width - self.getWidth()) // 2), ymax, xmax) self.changed = False |
