summaryrefslogtreecommitdiffstats
path: root/mbbsd/pmore.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-09 13:40:01 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-09 13:40:01 +0800
commit69e578bed87040e965ae6cb8eda9dbc5c7d66087 (patch)
tree7ab29d36339586cb18f944c2ddde7e725d584e4f /mbbsd/pmore.c
parente42e2de6e2722da3dac9a155ff45e755f7078d79 (diff)
downloadpttbbs-69e578bed87040e965ae6cb8eda9dbc5c7d66087.tar
pttbbs-69e578bed87040e965ae6cb8eda9dbc5c7d66087.tar.gz
pttbbs-69e578bed87040e965ae6cb8eda9dbc5c7d66087.tar.bz2
pttbbs-69e578bed87040e965ae6cb8eda9dbc5c7d66087.tar.lz
pttbbs-69e578bed87040e965ae6cb8eda9dbc5c7d66087.tar.xz
pttbbs-69e578bed87040e965ae6cb8eda9dbc5c7d66087.tar.zst
pttbbs-69e578bed87040e965ae6cb8eda9dbc5c7d66087.zip
- pmore: prevent scrolling to end after aborting movie playback
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3657 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/pmore.c')
-rw-r--r--mbbsd/pmore.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c
index 7adfc184..589fa893 100644
--- a/mbbsd/pmore.c
+++ b/mbbsd/pmore.c
@@ -422,6 +422,8 @@ MF_Movie mfmovie;
mfmovie.mode = MFDISP_MOVIE_YES; \
if (mfmovie.mode == MFDISP_MOVIE_PLAYING_OLD) \
mfmovie.mode = MFDISP_MOVIE_NO; \
+ mf_determinemaxdisps(MFNAV_PAGE, 0); \
+ mf_forward(0); \
}
#define RESET_MOVIE() { \
@@ -1807,8 +1809,6 @@ pmore(char *fpath, int promptend)
if(!mf_movieNextFrame())
{
STOP_MOVIE();
- mf_determinemaxdisps(MFNAV_PAGE, 0);
- mf_forward(0);
if(promptend == NA)
{
@@ -1848,10 +1848,11 @@ pmore(char *fpath, int promptend)
}
}
else if(mfmovie.mode == MFDISP_MOVIE_PLAYING_OLD)
+ {
mfmovie.mode = MFDISP_MOVIE_NO;
-
- mf_determinemaxdisps(MFNAV_PAGE, 0);
- mf_forward(0);
+ mf_determinemaxdisps(MFNAV_PAGE, 0);
+ mf_forward(0);
+ }
}
continue;
}