summaryrefslogtreecommitdiff
path: root/apps/plugins/blackjack.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-03-16 21:56:08 +0000
committerJens Arnold <amiconn@rockbox.org>2007-03-16 21:56:08 +0000
commit4d6374c9236b93e0bd457f99944164fc493d1120 (patch)
treeff9630fcef66e63c61cc0a74e97f21220e668f75 /apps/plugins/blackjack.c
parent2c643b9f3e22ee07f7949a5471f726758dc40841 (diff)
downloadrockbox-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/blackjack.c')
-rw-r--r--apps/plugins/blackjack.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/apps/plugins/blackjack.c b/apps/plugins/blackjack.c
index 728924da3e..81ac65d142 100644
--- a/apps/plugins/blackjack.c
+++ b/apps/plugins/blackjack.c
@@ -712,7 +712,7 @@ static void blackjack_savegame(struct game_context* bj) {
712static void blackjack_callback(void* param) { 712static void blackjack_callback(void* param) {
713 struct game_context* bj = (struct game_context*) param; 713 struct game_context* bj = (struct game_context*) param;
714 if(bj->dirty) { 714 if(bj->dirty) {
715 rb->splash(HZ, true, "Saving high scores..."); 715 rb->splash(HZ, "Saving high scores...");
716 blackjack_savescores(bj); 716 blackjack_savescores(bj);
717 } 717 }
718} 718}
@@ -1124,9 +1124,9 @@ static unsigned int blackjack_menu(struct game_context* bj) {
1124 1124
1125 case BJACK_RESUME:/* resume game */ 1125 case BJACK_RESUME:/* resume game */
1126 if(!blackjack_loadgame(bj)) { 1126 if(!blackjack_loadgame(bj)) {
1127 rb->splash(HZ*2, true, "Nothing to resume"); 1127 rb->splash(HZ*2, "Nothing to resume");
1128 } else { 1128 } else {
1129 rb->splash(HZ*2, true, "Loading..."); 1129 rb->splash(HZ*2, "Loading...");
1130 breakout = true; 1130 breakout = true;
1131 } 1131 }
1132 break; 1132 break;
@@ -1218,7 +1218,7 @@ static int blackjack(struct game_context* bj) {
1218 !bj->asked_insurance) { 1218 !bj->asked_insurance) {
1219 temp_var = insurance(bj); 1219 temp_var = insurance(bj);
1220 if (bj->dealer_total == 21) { 1220 if (bj->dealer_total == 21) {
1221 rb->splash(HZ, true, "Dealer has blackjack"); 1221 rb->splash(HZ, "Dealer has blackjack");
1222 bj->player_money += temp_var; 1222 bj->player_money += temp_var;
1223 bj->end_hand = true; 1223 bj->end_hand = true;
1224 breakout = true; 1224 breakout = true;
@@ -1226,7 +1226,7 @@ static int blackjack(struct game_context* bj) {
1226 finish_game(bj); 1226 finish_game(bj);
1227 } 1227 }
1228 else { 1228 else {
1229 rb->splash(HZ, true, "Dealer does not have blackjack"); 1229 rb->splash(HZ, "Dealer does not have blackjack");
1230 bj->player_money -= temp_var; 1230 bj->player_money -= temp_var;
1231 breakout = true; 1231 breakout = true;
1232 redraw_board(bj); 1232 redraw_board(bj);
@@ -1285,13 +1285,13 @@ static int blackjack(struct game_context* bj) {
1285 } 1285 }
1286 } 1286 }
1287 else if((signed int)bj->current_bet * 2 > bj->player_money) { 1287 else if((signed int)bj->current_bet * 2 > bj->player_money) {
1288 rb->splash(HZ, true, "Not enough money to double down."); 1288 rb->splash(HZ, "Not enough money to double down.");
1289 redraw_board(bj); 1289 redraw_board(bj);
1290 rb->lcd_update(); 1290 rb->lcd_update();
1291 } 1291 }
1292 break; 1292 break;
1293 case BJACK_RESUME: /* save and end game */ 1293 case BJACK_RESUME: /* save and end game */
1294 rb->splash(HZ, true, "Saving game..."); 1294 rb->splash(HZ, "Saving game...");
1295 blackjack_savegame(bj); 1295 blackjack_savegame(bj);
1296 /* fall through to BJACK_QUIT */ 1296 /* fall through to BJACK_QUIT */
1297 1297
@@ -1412,14 +1412,14 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) {
1412 while(!exit) { 1412 while(!exit) {
1413 switch(blackjack(&bj)){ 1413 switch(blackjack(&bj)){
1414 case BJ_LOSE: 1414 case BJ_LOSE:
1415 rb->splash(HZ, true, "Not enough money to continue"); 1415 rb->splash(HZ, "Not enough money to continue");
1416 /* fall through to BJ_END */ 1416 /* fall through to BJ_END */
1417 1417
1418 case BJ_END: 1418 case BJ_END:
1419 if(!bj.resume) { 1419 if(!bj.resume) {
1420 if((position = blackjack_recordscore(&bj))) { 1420 if((position = blackjack_recordscore(&bj))) {
1421 rb->snprintf(str, 19, "New high score #%d!", position); 1421 rb->snprintf(str, 19, "New high score #%d!", position);
1422 rb->splash(HZ*2, true, str); 1422 rb->splash(HZ*2, str);
1423 } 1423 }
1424 } 1424 }
1425 break; 1425 break;
@@ -1430,7 +1430,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) {
1430 1430
1431 case BJ_QUIT: 1431 case BJ_QUIT:
1432 if(bj.dirty) { 1432 if(bj.dirty) {
1433 rb->splash(HZ, true, "Saving high scores..."); 1433 rb->splash(HZ, "Saving high scores...");
1434 blackjack_savescores(&bj); 1434 blackjack_savescores(&bj);
1435 } 1435 }
1436 exit = true; 1436 exit = true;