summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-05-31 13:31:02 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-05-31 13:31:02 +0800
commitbdb0fdec9b4cf76b77b34058021326cf7a7d3bb8 (patch)
treedfd5a3c514aae5905539aa3a767318b9e67ff660
parent7fb50c3a816f8b243e387dd903df6fbd732735d3 (diff)
downloadpttbbs-bdb0fdec9b4cf76b77b34058021326cf7a7d3bb8.tar
pttbbs-bdb0fdec9b4cf76b77b34058021326cf7a7d3bb8.tar.gz
pttbbs-bdb0fdec9b4cf76b77b34058021326cf7a7d3bb8.tar.bz2
pttbbs-bdb0fdec9b4cf76b77b34058021326cf7a7d3bb8.tar.lz
pttbbs-bdb0fdec9b4cf76b77b34058021326cf7a7d3bb8.tar.xz
pttbbs-bdb0fdec9b4cf76b77b34058021326cf7a7d3bb8.tar.zst
pttbbs-bdb0fdec9b4cf76b77b34058021326cf7a7d3bb8.zip
workaround some type of board entrance: LG then LE (random one frame then stop immediately).
such syntax without would display remaining frames on large terminals. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4488 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/pmore.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c
index 4d3c6213..36aa1b2d 100644
--- a/mbbsd/pmore.c
+++ b/mbbsd/pmore.c
@@ -2048,7 +2048,21 @@ pmore(const char *fpath, int promptend)
mf_determinemaxdisps(0, 0); // display until last line
mf_movieNextFrame();
MFDISP_DIRTY();
+
+#ifdef PMORE_AUTOEXIT_FIRSTPAGE
+ // XXX a special case is 'random one frame then stop'.
+ // let's workaround for it.
+ if (mfmovie.mode == MFDISP_MOVIE_YES)
+ {
+ // re-display the page again!
+ mfmovie.mode = MFDISP_MOVIE_PLAYING;
+ mf_display();
+ RESET_MOVIE();
+ break;
+ }
+#endif
continue;
+
} else if (mfmovie.mode != MFDISP_MOVIE_PLAYING)
#endif
#ifndef PMORE_AUTOEXIT_FIRSTPAGE