summaryrefslogtreecommitdiffstats
path: root/mbbsd/pmore.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-29 17:44:46 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-29 17:44:46 +0800
commit7b2387bfe8a3207ccfa4d672932fa4575d7ea613 (patch)
tree77c81614b5579295f2d305aa391691e75265cab6 /mbbsd/pmore.c
parent9764d3343d619c806e4aabc2fa35203e8a995d8f (diff)
downloadpttbbs-7b2387bfe8a3207ccfa4d672932fa4575d7ea613.tar
pttbbs-7b2387bfe8a3207ccfa4d672932fa4575d7ea613.tar.gz
pttbbs-7b2387bfe8a3207ccfa4d672932fa4575d7ea613.tar.bz2
pttbbs-7b2387bfe8a3207ccfa4d672932fa4575d7ea613.tar.lz
pttbbs-7b2387bfe8a3207ccfa4d672932fa4575d7ea613.tar.xz
pttbbs-7b2387bfe8a3207ccfa4d672932fa4575d7ea613.tar.zst
pttbbs-7b2387bfe8a3207ccfa4d672932fa4575d7ea613.zip
pmore - skip warn when playing first page
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3759 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/pmore.c')
-rw-r--r--mbbsd/pmore.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c
index a83948f5..ae360c1f 100644
--- a/mbbsd/pmore.c
+++ b/mbbsd/pmore.c
@@ -1023,6 +1023,8 @@ MFDISP_DBCS_HEADERWIDTH(int originalw)
static char *override_msg = NULL;
static char *override_attr = NULL;
+#define RESET_OVERRIDE_MSG() { override_attr = override_msg = NULL; }
+
/*
* display mf content from disps for MFDISP_PAGE
*/
@@ -1821,6 +1823,8 @@ pmore(char *fpath, int promptend)
mf_determinemaxdisps(0, 0); // display until last line
mf_movieNextFrame();
MFDISP_DIRTY();
+ // remove override messages
+ RESET_OVERRIDE_MSG();
continue;
}
/* else, we have to clean up. */
@@ -2000,8 +2004,7 @@ pmore(char *fpath, int promptend)
buf[0] = 0;
if(override_attr) outs(override_attr);
snprintf(buf, sizeof(buf), override_msg);
- override_attr = NULL;
- override_msg = NULL;
+ RESET_OVERRIDE_MSG();
}
else
if(mf.xpos > 0)
@@ -2779,7 +2782,7 @@ mf_moviePromptPlaying(int type)
while(w-- > 0) outc(' ');
outs(ANSI_RESET ANSI_CLRTOEND);
- override_msg = NULL; override_attr = NULL;
+ RESET_OVERRIDE_MSG();
w = t_columns -1;
}