From 06daae64fd7ba665cb393170475aaccdc3b0cda1 Mon Sep 17 00:00:00 2001 From: xdd Date: Sun, 8 Sep 2002 20:17:21 +0000 Subject: [PATCH] =?utf8?q?=E5=88=9D=E6=9C=9F=E8=A8=AD=E5=AE=9A=E3=83=95?= =?utf8?q?=E3=82=A1=E3=82=A4=E3=83=AB=E3=81=8C=E4=BD=9C=E6=88=90=E3=81=95?= =?utf8?q?=E3=82=8C=E3=81=A6=E3=81=84=E3=81=AA=E3=81=84=E7=8A=B6=E6=85=8B?= =?utf8?q?=E3=81=A7=E3=82=BF=E3=82=A4=E3=83=AB=E8=A1=A8=E7=A4=BA=E3=82=92O?= =?utf8?q?N=E3=81=AB=E3=81=99=E3=82=8B=E3=81=A8=E8=A1=A8=E7=A4=BA=E3=81=95?= =?utf8?q?=E3=82=8C=E3=81=AA=E3=81=8B=E3=81=A3=E3=81=9F=E5=95=8F=E9=A1=8C?= =?utf8?q?=E3=81=AE=E4=BF=AE=E6=AD=A3=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main-mac-carbon.c | 6 ++++++ src/main-mac.c | 15 ++++++++++----- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/src/main-mac-carbon.c b/src/main-mac-carbon.c index c822b2ea4..cc20121f9 100644 --- a/src/main-mac-carbon.c +++ b/src/main-mac-carbon.c @@ -4494,6 +4494,12 @@ static void menu(long mc) { /* Toggle arg_graphics */ arg_graphics = !arg_graphics; + if( arg_graphics == true ){ + ANGBAND_GRAF = "old"; + arg_newstyle_graphics = false; + grafWidth = grafHeight = 8; + pictID = 1001; + } /* Hack -- Force redraw */ Term_key_push(KTRL('R')); diff --git a/src/main-mac.c b/src/main-mac.c index 505e5acee..c91b608a2 100644 --- a/src/main-mac.c +++ b/src/main-mac.c @@ -2271,7 +2271,7 @@ static int getshort(void) { int x = 0; char buf[256]; - if (0 == my_fgets(fff, buf, sizeof(buf))) x = atoi(buf); + if (0 == my_fgets(fff, buf, 256)) x = atoi(buf); return (x); } @@ -2797,7 +2797,7 @@ static void init_chuukei( void ) char tmp[1024]; FILE *fp; - path_build(path, sizeof(path), ANGBAND_DIR_XTRA, "chuukei.txt"); + path_build(path, 1024, ANGBAND_DIR_XTRA, "chuukei.txt"); fp = fopen(path, "r"); if(!fp) @@ -4153,7 +4153,12 @@ static void menu(long mc) { /* Toggle arg_graphics */ arg_graphics = !arg_graphics; - + if( arg_graphics == true ){ + ANGBAND_GRAF = "old"; + arg_newstyle_graphics = false; + grafWidth = grafHeight = 8; + pictID = 1001; + } /* Hack -- Force redraw */ Term_key_push(KTRL('R')); @@ -5098,9 +5103,9 @@ static void init_stuff(void) /* Build the filename */ #ifdef JP - path_build(path, sizeof(path), ANGBAND_DIR_FILE, "news_j.txt"); + path_build(path, 1024, ANGBAND_DIR_FILE, "news_j.txt"); #else - path_build(path, sizeof(path), ANGBAND_DIR_FILE, "news.txt"); + path_build(path, 1024, ANGBAND_DIR_FILE, "news.txt"); #endif /* Attempt to open and close that file */ -- 2.11.0