diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-29 17:37:48 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-29 17:37:48 +0800 |
commit | 9764d3343d619c806e4aabc2fa35203e8a995d8f (patch) | |
tree | f5b070beb5f4989874429c40d25e8a47454a6081 /mbbsd/pmore.c | |
parent | 6c79d638fefc182f68c9b539e532256cf218febf (diff) | |
download | pttbbs-9764d3343d619c806e4aabc2fa35203e8a995d8f.tar pttbbs-9764d3343d619c806e4aabc2fa35203e8a995d8f.tar.gz pttbbs-9764d3343d619c806e4aabc2fa35203e8a995d8f.tar.bz2 pttbbs-9764d3343d619c806e4aabc2fa35203e8a995d8f.tar.lz pttbbs-9764d3343d619c806e4aabc2fa35203e8a995d8f.tar.xz pttbbs-9764d3343d619c806e4aabc2fa35203e8a995d8f.tar.zst pttbbs-9764d3343d619c806e4aabc2fa35203e8a995d8f.zip |
- pmore: relax the movement message in movie playing mode
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3758 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/pmore.c')
-rw-r--r-- | mbbsd/pmore.c | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c index 3869c472..a83948f5 100644 --- a/mbbsd/pmore.c +++ b/mbbsd/pmore.c @@ -443,6 +443,10 @@ MF_Movie mfmovie; mfmovie.frameclk.tv_sec = 1; mfmovie.frameclk.tv_usec = 0; \ } +#define MOVIE_IS_PLAYING() \ + ((mfmovie.mode == MFDISP_MOVIE_PLAYING) || \ + (mfmovie.mode == MFDISP_MOVIE_PLAYING_OLD)) + unsigned char * mf_movieFrameHeader(unsigned char *p, unsigned char *end); @@ -1058,8 +1062,7 @@ mf_display() #if defined(PMORE_USE_ASCII_MOVIE) && !defined(PMORE_USING_POOR_TERM) // For movies, maybe clear() is better. // Let's enable for good terminals (which does not need workarounds) - if (mfmovie.mode == MFDISP_MOVIE_PLAYING || - mfmovie.mode == MFDISP_MOVIE_PLAYING_OLD) + if (MOVIE_IS_PLAYING()) { clear(); move(0, 0); } else @@ -1331,13 +1334,19 @@ mf_display() { #ifdef PMORE_RESTRICT_ANSI_MOVEMENT c = 's'; // "save cursor pos" -#else +#else // PMORE_RESTRICT_ANSI_MOVEMENT // some user cannot live without this. // make them happy. newline_default = newline = MFDISP_NEWLINE_MOVE; - override_attr = ANSI_COLOR(1;37;41); - override_msg = PMORE_MSG_WARN_MOVECMD; -#endif +#ifdef PMORE_USE_ASCII_MOVIE + // relax for movies + if (!MOVIE_IS_PLAYING()) +#endif // PMORE_USE_ASCII_MOVIE + { + override_attr = ANSI_COLOR(1;37;41); + override_msg = PMORE_MSG_WARN_MOVECMD; + } +#endif // PMORE_RESTRICT_ANSI_MOVEMENT needMove2bot = 1; } outc(c); |