From 9b52804b9f869b48a54e53ab0cea4cc0fd4a0e74 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Fri, 6 Nov 2020 03:50:04 +0100 Subject: [PATCH] Enforce rows number as multiple of 4 in both clients, for smoother hex scrolling. --- new2/rogue_chat_curses.py | 2 +- new2/rogue_chat_nocanvas_monochrome.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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: