From f64c2070df302575fd358f2510f418dbde3551af Mon Sep 17 00:00:00 2001 From: Michael Meyer Date: Tue, 26 Sep 2023 23:55:06 -0400 Subject: [PATCH] Fix: clipping on horizontal window resize Clipping mode was not activated when a comfortably-sized game window was resized horizontally to become too narrow to display the entire map, causing various display errors and bugs if the window was resized like that. I think the horizontal resize check was removed by mistake in d1dade164ef220a011bf89fa445a8b0012bf38df. --- win/tty/wintty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win/tty/wintty.c b/win/tty/wintty.c index cd29dfa18..2d00600fc 100644 --- a/win/tty/wintty.c +++ b/win/tty/wintty.c @@ -452,7 +452,7 @@ new_status_window(void) #ifdef CLIPPING if (u.ux) { - if (LI < 1 + ROWNO + iflags.wc2_statuslines) { + if (CO < COLNO || LI < 1 + ROWNO + iflags.wc2_statuslines) { setclipped(); tty_cliparound(u.ux, u.uy); } else {