diff options
| author | troido <troido@tilde.town> | 2018-01-18 22:14:35 +0000 |
|---|---|---|
| committer | troido <troido@tilde.town> | 2018-01-18 22:14:35 +0000 |
| commit | 50321b57b146944399671b6a8b56c6b769d5ddeb (patch) | |
| tree | c6f4e0d63c4bceb769a35334ae16f3e641669ddc /asciifarm | |
| parent | d0a4b8dd97d960eaf1922e773f6dc376ec96f8d9 (diff) | |
clear a fieldcell before redrawing another character
Diffstat (limited to 'asciifarm')
| -rw-r--r-- | asciifarm/client/display/fieldpad.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/asciifarm/client/display/fieldpad.py b/asciifarm/client/display/fieldpad.py index f64634e..758ecbf 100644 --- a/asciifarm/client/display/fieldpad.py +++ b/asciifarm/client/display/fieldpad.py @@ -37,6 +37,7 @@ class FieldPad: else: bgcolour = 0 if colour is not None and self.colours: + self.pad.addstr(y, x*self.charSize, " "*self.charSize, self.colours.get(7, 0)) self.pad.addstr(y, x*self.charSize, char, self.colours.get(colour, bgcolour)) else: self.pad.addstr(y, x*self.charSize, char) |
