From 66815a20f915c6dcea0cbb31631a7d951102e921 Mon Sep 17 00:00:00 2001 From: mogami Date: Wed, 10 Apr 2002 15:09:54 +0000 Subject: [PATCH] =?utf8?q?=E3=82=B5=E3=83=96=E3=82=A6=E3=82=A3=E3=83=B3?= =?utf8?q?=E3=83=89=E3=82=A6=E3=81=AB=E5=85=A8=E4=BD=93=E3=83=9E=E3=83=83?= =?utf8?q?=E3=83=97=E3=82=92=E8=A1=A8=E7=A4=BA=E3=81=99=E3=82=8B=E3=81=A8?= =?utf8?q?=E3=81=8D=E3=80=81=E3=82=A6=E3=82=A3=E3=83=B3=E3=83=89=E3=82=A6?= =?utf8?q?=E3=81=8C=E5=B0=8F=E3=81=95=E3=81=99=E3=81=8E=E3=82=8B=E3=81=A8?= =?utf8?q?=E8=90=BD=E3=81=A1=E3=82=8B=E3=81=AE=E3=81=A7=E3=80=81=20?= =?utf8?q?=E3=81=9D=E3=81=AE=E3=81=A8=E3=81=8D=E3=81=AF=E8=A1=A8=E7=A4=BA?= =?utf8?q?=E3=82=92=E3=81=97=E3=81=AA=E3=81=84=E3=82=88=E3=81=86=E3=81=AB?= =?utf8?q?=E4=BF=AE=E6=AD=A3=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/xtra1.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/xtra1.c b/src/xtra1.c index 1441d1caf..848e01ac4 100644 --- a/src/xtra1.c +++ b/src/xtra1.c @@ -2110,6 +2110,7 @@ static void fix_overhead(void) for (j = 0; j < 8; j++) { term *old = Term; + int wid, hgt; /* No window */ if (!angband_term[j]) continue; @@ -2120,11 +2121,16 @@ static void fix_overhead(void) /* Activate */ Term_activate(angband_term[j]); - /* Redraw map */ - display_map(&cy, &cx); + /* Full map in too small window is useless */ + Term_get_size(&wid, &hgt); + if (wid > COL_MAP + 2 && hgt > ROW_MAP + 2) + { + /* Redraw map */ + display_map(&cy, &cx); - /* Fresh */ - Term_fresh(); + /* Fresh */ + Term_fresh(); + } /* Restore */ Term_activate(old); -- 2.11.0