From 2e7c12b770a1ac222364312820675f5dc5a849e7 Mon Sep 17 00:00:00 2001 From: eichhornchen Date: Tue, 10 Nov 2020 11:22:09 +0100 Subject: [PATCH] Trying to repair the test --- dungeonbattle/display/display.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dungeonbattle/display/display.py b/dungeonbattle/display/display.py index c5f8ccc..cf1d8fc 100644 --- a/dungeonbattle/display/display.py +++ b/dungeonbattle/display/display.py @@ -15,8 +15,8 @@ class Display: self.screen = screen self.texture = texture self.map = m - self.mapdisplay = MapDisplay(self.map, self.texture, curses.LINES * 4//5, curses.COLS) - self.statsdisplay = StatsDisplay(curses.LINES//5, curses.COLS, curses.LINES * 4//5, 0) + self.mapdisplay = MapDisplay(self.map, self.texture, self.rows() * 4//5, self.cols()) + self.statsdisplay = StatsDisplay(self.rows()//5, self.cols(), self.rows() * 4//5, 0) def refresh(self, m : Map, p : Player) -> None: self.map = m