summaryrefslogtreecommitdiffstats
path: root/mbbsd/pmore.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-15 13:09:29 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-15 13:09:29 +0800
commit1747fb8d710780e60d9af73723da21a80197137b (patch)
tree678496b7171e6be25ab5be9a6dc25e7925a444b2 /mbbsd/pmore.c
parent1680a267a8c73a0e433c67ef7ba89bc60e0e4574 (diff)
downloadpttbbs-1747fb8d710780e60d9af73723da21a80197137b.tar
pttbbs-1747fb8d710780e60d9af73723da21a80197137b.tar.gz
pttbbs-1747fb8d710780e60d9af73723da21a80197137b.tar.bz2
pttbbs-1747fb8d710780e60d9af73723da21a80197137b.tar.lz
pttbbs-1747fb8d710780e60d9af73723da21a80197137b.tar.xz
pttbbs-1747fb8d710780e60d9af73723da21a80197137b.tar.zst
pttbbs-1747fb8d710780e60d9af73723da21a80197137b.zip
- unify processing clock variable 'now'
- pmore: support time refresh git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3683 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/pmore.c')
-rw-r--r--mbbsd/pmore.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c
index abca918f..eac18ac1 100644
--- a/mbbsd/pmore.c
+++ b/mbbsd/pmore.c
@@ -18,7 +18,7 @@
* You must keep these copyright infomration.
*
* MAJOR IMPROVEMENTS:
- * - Clean source code, and more readble to mortal
+ * - Clean source code, and more readable for mortal
* - Correct navigation
* - Excellent search ability (for correctness and user behavior)
* - Less memory consumption (mmap is not considered anyway)
@@ -42,9 +42,9 @@
* - Playback Control (pause, stop, skip) [done]
* - Interactive Movie (Hyper-text) [done]
* - Preference System (like board-conf) [done]
+ * - Traditional Movie Compatible Mode
* -
* - Support Anti-anti-idle (ex, PCMan sends up-down)
- * - Traditional Movie Compatible Mode
* - Better help system [pending]
* - Virtual Contatenate [pending]
* - Drop ANSI between DBCS words if outputing UTF8 [drop] (or if user request)
@@ -2707,6 +2707,11 @@ pmore_wait_key(struct timeval *ptv, int dorefresh)
// now, maybe something for read (sel > 0)
// or time out (sel == 0)
// or weird error (sel < 0)
+
+ // sync clock(now) if timeout.
+ if (sel == 0)
+ syncnow();
+
return (sel == 0) ? 0 : 1;
}