From 599f75b676894a1f98a9b1556d4600d721d225bf Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Sat, 12 Dec 2020 21:19:55 +0100 Subject: [PATCH] Erase pad before resizing, fixes #45 --- squirrelbattle/display/display.py | 1 + 1 file changed, 1 insertion(+) diff --git a/squirrelbattle/display/display.py b/squirrelbattle/display/display.py index d1bea1b..29295de 100644 --- a/squirrelbattle/display/display.py +++ b/squirrelbattle/display/display.py @@ -132,6 +132,7 @@ class Display: self.height = height if hasattr(self, "pad") and resize_pad and \ self.height >= 0 and self.width >= 0: + self.pad.erase() self.pad.resize(self.height + 1, self.width + 1) def refresh(self, *args, resize_pad: bool = True) -> None: