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
d1dade164e.
This commit is contained in:
Michael Meyer
2023-09-26 23:55:06 -04:00
committed by Pasi Kallinen
parent fa1f1134c8
commit f64c2070df

View File

@@ -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 {