summaryrefslogtreecommitdiffstats
path: root/mbbsd/gomo.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-22 01:18:33 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-22 01:18:33 +0800
commit0a8c26c6cb91df44d81ec63cc422a540190a878a (patch)
treefc580a056911b0a58f41e5123defcc3454dc6403 /mbbsd/gomo.c
parent510109806cffe63c0735605ffe06470ec56b780f (diff)
downloadpttbbs-0a8c26c6cb91df44d81ec63cc422a540190a878a.tar
pttbbs-0a8c26c6cb91df44d81ec63cc422a540190a878a.tar.gz
pttbbs-0a8c26c6cb91df44d81ec63cc422a540190a878a.tar.bz2
pttbbs-0a8c26c6cb91df44d81ec63cc422a540190a878a.tar.lz
pttbbs-0a8c26c6cb91df44d81ec63cc422a540190a878a.tar.xz
pttbbs-0a8c26c6cb91df44d81ec63cc422a540190a878a.tar.zst
pttbbs-0a8c26c6cb91df44d81ec63cc422a540190a878a.zip
- change big_picture to inansistr() api.
- pmore: also disable scrolling for traditional movies git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3722 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/gomo.c')
-rw-r--r--mbbsd/gomo.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/mbbsd/gomo.c b/mbbsd/gomo.c
index 3416adc0..90f72c63 100644
--- a/mbbsd/gomo.c
+++ b/mbbsd/gomo.c
@@ -420,12 +420,18 @@ gomo_gameend(ChessInfo* info, ChessGameResult result)
static void
gomo_genlog(ChessInfo* info, FILE* fp, ChessGameResult result)
{
+ char buf[ANSILINELEN] = "";
const int nStep = info->history.used;
- int i;
+ int i, x, y;
- if(big_picture)
+ getyx(&y, &x);
for (i = 1; i <= 18; i++)
- fprintf(fp, "%.*s\n", big_picture[i].len, big_picture[i].data);
+ {
+ move(i, 0);
+ inansistr(buf, sizeof(buf)-1);
+ fprintf(fp, "%s\n", buf);
+ }
+ move(y, x);
fprintf(fp, "\n");
fprintf(fp, "按 z 可進入打譜模式\n");