From: Christian Heller Date: Fri, 6 Nov 2020 02:50:04 +0000 (+0100) Subject: Enforce rows number as multiple of 4 in both clients, for smoother hex scrolling. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/static/error?a=commitdiff_plain;h=9b52804b9f869b48a54e53ab0cea4cc0fd4a0e74;p=plomrogue2-experiments Enforce rows number as multiple of 4 in both clients, for smoother hex scrolling. --- diff --git a/new2/rogue_chat_curses.py b/new2/rogue_chat_curses.py index 4d994be..1ae5fa2 100755 --- a/new2/rogue_chat_curses.py +++ b/new2/rogue_chat_curses.py @@ -300,7 +300,7 @@ class TUI: def reset_screen_size(): self.size = YX(*stdscr.getmaxyx()) - self.size = self.size - YX(self.size.y % 2, 0) + self.size = self.size - YX(self.size.y % 4, 0) self.size = self.size - YX(0, self.size.x % 4) self.window_width = int(self.size.x / 2) diff --git a/new2/rogue_chat_nocanvas_monochrome.html b/new2/rogue_chat_nocanvas_monochrome.html index 2dd6c68..16fd834 100644 --- a/new2/rogue_chat_nocanvas_monochrome.html +++ b/new2/rogue_chat_nocanvas_monochrome.html @@ -8,7 +8,7 @@ movement: -rows: +rows: cols: command character: