summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorPeter D'Hoye <peter.dhoye@gmail.com>2007-08-03 21:59:41 +0000
committerPeter D'Hoye <peter.dhoye@gmail.com>2007-08-03 21:59:41 +0000
commit5490f6c78afe7e8d472c0e2999c3586a83916b0e (patch)
tree87d153c50bad639cafb691adb6ac195bae739a98 /apps/plugins
parentd0bc092e9e9ab31f3c815857a57a95808378b04d (diff)
downloadrockbox-5490f6c78afe7e8d472c0e2999c3586a83916b0e.zip
rockbox-5490f6c78afe7e8d472c0e2999c3586a83916b0e.tar.gz
rockbox-5490f6c78afe7e8d472c0e2999c3586a83916b0e.tar.bz2
rockbox-5490f6c78afe7e8d472c0e2999c3586a83916b0e.tar.xz
Chessbox plugin: Reset computer thinking time on forced play (FS #5135)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14170 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/chessbox/chessbox.c1
-rw-r--r--apps/plugins/chessbox/gnuchess.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/apps/plugins/chessbox/chessbox.c b/apps/plugins/chessbox/chessbox.c
index fce5c72..aedb9f8 100644
--- a/apps/plugins/chessbox/chessbox.c
+++ b/apps/plugins/chessbox/chessbox.c
@@ -1032,6 +1032,7 @@ void cb_play_game(void) {
computer = black;
}
rb->splash ( 0 , "Thinking..." );
+ ElapsedTime(1);
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
rb->cpu_boost ( true );
#endif
diff --git a/apps/plugins/chessbox/gnuchess.h b/apps/plugins/chessbox/gnuchess.h
index 5e8974f..5367bb3 100644
--- a/apps/plugins/chessbox/gnuchess.h
+++ b/apps/plugins/chessbox/gnuchess.h
@@ -52,5 +52,6 @@ void GNUChess_Initialize(void);
int VerifyMove(char s[],short iop,unsigned short *mv);
int SelectMove ( short side, short iop , void (*callback)(void), char *move_buffer );
void InitializeStats ( void );
+void ElapsedTime ( short iop );
#endif