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-27 10:49:08 +03:00
committed by Pasi Kallinen
parent fa1f1134c8
commit f64c2070df
+1 -1
View File
@@ -452,7 +452,7 @@ new_status_window(void)
#ifdef CLIPPING #ifdef CLIPPING
if (u.ux) { if (u.ux) {
if (LI < 1 + ROWNO + iflags.wc2_statuslines) { if (CO < COLNO || LI < 1 + ROWNO + iflags.wc2_statuslines) {
setclipped(); setclipped();
tty_cliparound(u.ux, u.uy); tty_cliparound(u.ux, u.uy);
} else { } else {