summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-08 01:28:31 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-08 01:28:31 +0800
commit6245de5aeccde336f5debab6944ebd10ace22986 (patch)
tree00f86f88a7abc74e3ecda8a663f64549f3183579 /mbbsd
parent134211be4833a4f3f0040be2ad76dd8da4cfe094 (diff)
downloadpttbbs-6245de5aeccde336f5debab6944ebd10ace22986.tar
pttbbs-6245de5aeccde336f5debab6944ebd10ace22986.tar.gz
pttbbs-6245de5aeccde336f5debab6944ebd10ace22986.tar.bz2
pttbbs-6245de5aeccde336f5debab6944ebd10ace22986.tar.lz
pttbbs-6245de5aeccde336f5debab6944ebd10ace22986.tar.xz
pttbbs-6245de5aeccde336f5debab6944ebd10ace22986.tar.zst
pttbbs-6245de5aeccde336f5debab6944ebd10ace22986.zip
- pmore/movie: better fixing of f-1 frame determination.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4094 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/pmore.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c
index a5829555..21e65c92 100644
--- a/mbbsd/pmore.c
+++ b/mbbsd/pmore.c
@@ -3085,12 +3085,11 @@ mf_movieGotoFrame(int fno, int relative)
mf_forward(1);
} while (fno > 0);
} else {
- // For backward, the first call moves to beginning of file.
- if (mf_backward(1) < 1)
- return 0;
// backward
- // XXX check if we reached head?
- while (fno < 0)
+ // For backward, the first call moves to beginning of current line
+ // (which is frame header). so the loop should be be (abs(fno)+1),
+ // and that's why use <= here.
+ while (fno <= 0)
{
do {
if (mf_backward(1) < 1)