summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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