diff options
author | Jens Arnold <amiconn@rockbox.org> | 2007-03-16 21:56:08 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2007-03-16 21:56:08 +0000 |
commit | 4d6374c9236b93e0bd457f99944164fc493d1120 (patch) | |
tree | ff9630fcef66e63c61cc0a74e97f21220e668f75 /apps/plugins/chessbox | |
parent | 2c643b9f3e22ee07f7949a5471f726758dc40841 (diff) | |
download | rockbox-4d6374c9236b93e0bd457f99944164fc493d1120.tar.gz rockbox-4d6374c9236b93e0bd457f99944164fc493d1120.zip |
Get rid of the 'center' parameter for splashes. There were only 2 of almost 500 splashes which were not centered.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12807 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/chessbox')
-rw-r--r-- | apps/plugins/chessbox/chessbox.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/plugins/chessbox/chessbox.c b/apps/plugins/chessbox/chessbox.c index c6a79e4ec7..da26d0f6db 100644 --- a/apps/plugins/chessbox/chessbox.c +++ b/apps/plugins/chessbox/chessbox.c | |||
@@ -384,7 +384,7 @@ void cb_levelup ( void ) { | |||
384 | cb_setlevel ( 1 ); | 384 | cb_setlevel ( 1 ); |
385 | else | 385 | else |
386 | cb_setlevel ( Level+1 ); | 386 | cb_setlevel ( Level+1 ); |
387 | rb->splash ( 50 , true , level_string[Level-1] ); | 387 | rb->splash ( 50 , level_string[Level-1] ); |
388 | }; | 388 | }; |
389 | 389 | ||
390 | /* ---- Save current position ---- */ | 390 | /* ---- Save current position ---- */ |
@@ -393,7 +393,7 @@ void cb_saveposition ( void ) { | |||
393 | short sq,i,c; | 393 | short sq,i,c; |
394 | unsigned short temp; | 394 | unsigned short temp; |
395 | 395 | ||
396 | rb->splash ( 0 , true , "Saving position" ); | 396 | rb->splash ( 0 , "Saving position" ); |
397 | 397 | ||
398 | fd = rb->open(SAVE_FILE, O_WRONLY|O_CREAT); | 398 | fd = rb->open(SAVE_FILE, O_WRONLY|O_CREAT); |
399 | 399 | ||
@@ -448,7 +448,7 @@ void cb_restoreposition ( void ) { | |||
448 | unsigned short m; | 448 | unsigned short m; |
449 | 449 | ||
450 | if ( (fd = rb->open(SAVE_FILE, O_RDONLY)) >= 0 ) { | 450 | if ( (fd = rb->open(SAVE_FILE, O_RDONLY)) >= 0 ) { |
451 | rb->splash ( 0 , true , "Loading position" ); | 451 | rb->splash ( 0 , "Loading position" ); |
452 | rb->read(fd, &(computer), sizeof(computer)); | 452 | rb->read(fd, &(computer), sizeof(computer)); |
453 | rb->read(fd, &(opponent), sizeof(opponent)); | 453 | rb->read(fd, &(opponent), sizeof(opponent)); |
454 | rb->read(fd, &(Game50), sizeof(Game50)); | 454 | rb->read(fd, &(Game50), sizeof(Game50)); |
@@ -673,7 +673,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) { | |||
673 | 673 | ||
674 | while (!exit) { | 674 | while (!exit) { |
675 | if ( mate ) { | 675 | if ( mate ) { |
676 | rb->splash ( 500 , true , "Checkmate!" ); | 676 | rb->splash ( 500 , "Checkmate!" ); |
677 | rb->button_get(true); | 677 | rb->button_get(true); |
678 | GNUChess_Initialize(); | 678 | GNUChess_Initialize(); |
679 | cb_drawboard(); | 679 | cb_drawboard(); |
@@ -682,11 +682,11 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) { | |||
682 | switch (command.type) { | 682 | switch (command.type) { |
683 | case COMMAND_MOVE: | 683 | case COMMAND_MOVE: |
684 | if ( ! VerifyMove ( command.mv_s , 0 , &command.mv ) ) { | 684 | if ( ! VerifyMove ( command.mv_s , 0 , &command.mv ) ) { |
685 | rb->splash ( 50 , true , "Illegal move!" ); | 685 | rb->splash ( 50 , "Illegal move!" ); |
686 | cb_drawboard(); | 686 | cb_drawboard(); |
687 | } else { | 687 | } else { |
688 | cb_drawboard(); | 688 | cb_drawboard(); |
689 | rb->splash ( 0 , true , "Thinking..." ); | 689 | rb->splash ( 0 , "Thinking..." ); |
690 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | 690 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ |
691 | rb->cpu_boost ( true ); | 691 | rb->cpu_boost ( true ); |
692 | #endif | 692 | #endif |
@@ -709,7 +709,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) { | |||
709 | #endif | 709 | #endif |
710 | case COMMAND_PLAY: | 710 | case COMMAND_PLAY: |
711 | opponent = !opponent; computer = !computer; | 711 | opponent = !opponent; computer = !computer; |
712 | rb->splash ( 0 , true , "Thinking..." ); | 712 | rb->splash ( 0 , "Thinking..." ); |
713 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | 713 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ |
714 | rb->cpu_boost ( true ); | 714 | rb->cpu_boost ( true ); |
715 | #endif | 715 | #endif |