summaryrefslogtreecommitdiff
path: root/apps
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
parentd0bc092e9e9ab31f3c815857a57a95808378b04d (diff)
downloadrockbox-5490f6c78afe7e8d472c0e2999c3586a83916b0e.tar.gz
rockbox-5490f6c78afe7e8d472c0e2999c3586a83916b0e.zip
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')
-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 fce5c72d61..aedb9f8cc3 100644
--- a/apps/plugins/chessbox/chessbox.c
+++ b/apps/plugins/chessbox/chessbox.c
@@ -1032,6 +1032,7 @@ void cb_play_game(void) {
1032 computer = black; 1032 computer = black;
1033 } 1033 }
1034 rb->splash ( 0 , "Thinking..." ); 1034 rb->splash ( 0 , "Thinking..." );
1035 ElapsedTime(1);
1035#ifdef HAVE_ADJUSTABLE_CPU_FREQ 1036#ifdef HAVE_ADJUSTABLE_CPU_FREQ
1036 rb->cpu_boost ( true ); 1037 rb->cpu_boost ( true );
1037#endif 1038#endif
diff --git a/apps/plugins/chessbox/gnuchess.h b/apps/plugins/chessbox/gnuchess.h
index 5e8974f3b7..5367bb3254 100644
--- a/apps/plugins/chessbox/gnuchess.h
+++ b/apps/plugins/chessbox/gnuchess.h
@@ -52,5 +52,6 @@ void GNUChess_Initialize(void);
52int VerifyMove(char s[],short iop,unsigned short *mv); 52int VerifyMove(char s[],short iop,unsigned short *mv);
53int SelectMove ( short side, short iop , void (*callback)(void), char *move_buffer ); 53int SelectMove ( short side, short iop , void (*callback)(void), char *move_buffer );
54void InitializeStats ( void ); 54void InitializeStats ( void );
55void ElapsedTime ( short iop );
55 56
56#endif 57#endif