summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2008-09-24 17:48:10 +0000
committerNils Wallménius <nils@rockbox.org>2008-09-24 17:48:10 +0000
commit7d4cebd7dad4d1e5e97084c28a0f71d4d7142295 (patch)
treeec4ff67960ded8fb0024fb065b6d4e9947d2de86
parent1121af7b5e8bb175c8bb0fcb6cca66286f4f3342 (diff)
downloadrockbox-7d4cebd7dad4d1e5e97084c28a0f71d4d7142295.tar.gz
rockbox-7d4cebd7dad4d1e5e97084c28a0f71d4d7142295.zip
Slight clean up of splash calls, use HZ instead of explicit numbers
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18624 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/chessbox/chessbox.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/plugins/chessbox/chessbox.c b/apps/plugins/chessbox/chessbox.c
index 3d9afa7cbc..f34bdbf24a 100644
--- a/apps/plugins/chessbox/chessbox.c
+++ b/apps/plugins/chessbox/chessbox.c
@@ -257,7 +257,7 @@ void cb_levelup ( void ) {
257 cb_setlevel ( 1 ); 257 cb_setlevel ( 1 );
258 else 258 else
259 cb_setlevel ( Level+1 ); 259 cb_setlevel ( Level+1 );
260 rb->splash ( 50 , level_string[Level-1] ); 260 rb->splash ( HZ/2 , level_string[Level-1] );
261}; 261};
262 262
263/* ---- Save current position ---- */ 263/* ---- Save current position ---- */
@@ -452,7 +452,7 @@ void cb_start_viewer(char* filename){
452 452
453 first_game = pgn_list_games(rb, filename); 453 first_game = pgn_list_games(rb, filename);
454 if (first_game == NULL){ 454 if (first_game == NULL){
455 rb->splash ( 200 , "No games found !" ); 455 rb->splash ( HZ*2 , "No games found !" );
456 return; 456 return;
457 } 457 }
458 458
@@ -482,7 +482,7 @@ void cb_start_viewer(char* filename){
482 if (curr_ply->prev_node != NULL){ 482 if (curr_ply->prev_node != NULL){
483 curr_ply = curr_ply->prev_node; 483 curr_ply = curr_ply->prev_node;
484 } else { 484 } else {
485 rb->splash ( 200 , "At the begining of the game" ); 485 rb->splash ( HZ*2 , "At the begining of the game" );
486 break; 486 break;
487 } 487 }
488 board[locn[curr_ply->row_from][curr_ply->column_from]] 488 board[locn[curr_ply->row_from][curr_ply->column_from]]
@@ -528,7 +528,7 @@ void cb_start_viewer(char* filename){
528 case COMMAND_NEXT: 528 case COMMAND_NEXT:
529 /* apply the current move */ 529 /* apply the current move */
530 if (curr_ply->player == neutral){ 530 if (curr_ply->player == neutral){
531 rb->splash ( 200 , "At the end of the game" ); 531 rb->splash ( HZ*2 , "At the end of the game" );
532 break; 532 break;
533 } 533 }
534 board[locn[curr_ply->row_to][curr_ply->column_to]] 534 board[locn[curr_ply->row_to][curr_ply->column_to]]
@@ -580,7 +580,7 @@ void cb_start_viewer(char* filename){
580 } 580 }
581 } while (!exit_game && !exit_viewer); 581 } while (!exit_game && !exit_viewer);
582 } else { 582 } else {
583 rb->splash ( 200 , "Error parsing game !"); 583 rb->splash ( HZ*2 , "Error parsing game !");
584 } 584 }
585 } while (!exit_viewer); 585 } while (!exit_viewer);
586} 586}
@@ -781,7 +781,7 @@ void cb_play_game(void) {
781 781
782 while (!exit) { 782 while (!exit) {
783 if ( mate ) { 783 if ( mate ) {
784 rb->splash ( 500 , "Checkmate!" ); 784 rb->splash ( HZ*3 , "Checkmate!" );
785 rb->button_get(true); 785 rb->button_get(true);
786 pgn_store_game(rb, game); 786 pgn_store_game(rb, game);
787 GNUChess_Initialize(); 787 GNUChess_Initialize();
@@ -792,7 +792,7 @@ void cb_play_game(void) {
792 switch (command.type) { 792 switch (command.type) {
793 case COMMAND_MOVE: 793 case COMMAND_MOVE:
794 if ( ! VerifyMove (opponent, command.mv_s , 0 , &command.mv, move_buffer ) ) { 794 if ( ! VerifyMove (opponent, command.mv_s , 0 , &command.mv, move_buffer ) ) {
795 rb->splash ( 50 , "Illegal move!" ); 795 rb->splash ( HZ/2 , "Illegal move!" );
796 cb_drawboard(); 796 cb_drawboard();
797 } else { 797 } else {
798 cb_drawboard(); 798 cb_drawboard();