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:
committed by
Pasi Kallinen
parent
fa1f1134c8
commit
f64c2070df
+1
-1
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user