diff options
Diffstat (limited to 'apps/plugins/sudoku/sudoku.c')
-rw-r--r-- | apps/plugins/sudoku/sudoku.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/apps/plugins/sudoku/sudoku.c b/apps/plugins/sudoku/sudoku.c index 218a544f8c..59adb77fa9 100644 --- a/apps/plugins/sudoku/sudoku.c +++ b/apps/plugins/sudoku/sudoku.c | |||
@@ -490,7 +490,7 @@ void sudoku_solve(struct sudoku_state_t* state) | |||
490 | } | 490 | } |
491 | } | 491 | } |
492 | } else { | 492 | } else { |
493 | rb->splash(HZ*2, true, "Solve failed"); | 493 | rb->splash(HZ*2, "Solve failed"); |
494 | } | 494 | } |
495 | 495 | ||
496 | return; | 496 | return; |
@@ -696,7 +696,7 @@ bool save_sudoku(struct sudoku_state_t* state) | |||
696 | char line[13]; | 696 | char line[13]; |
697 | char sep[13]; | 697 | char sep[13]; |
698 | 698 | ||
699 | rb->splash(0, true, "Saving..."); | 699 | rb->splash(0, "Saving..."); |
700 | rb->memcpy(line,"...|...|...\r\n",13); | 700 | rb->memcpy(line,"...|...|...\r\n",13); |
701 | rb->memcpy(sep,"-----------\r\n",13); | 701 | rb->memcpy(sep,"-----------\r\n",13); |
702 | 702 | ||
@@ -966,7 +966,7 @@ bool sudoku_generate(struct sudoku_state_t* state) | |||
966 | 966 | ||
967 | clear_state(&new_state); | 967 | clear_state(&new_state); |
968 | display_board(&new_state); | 968 | display_board(&new_state); |
969 | rb->splash(0, true, "Generating..."); | 969 | rb->splash(0, "Generating..."); |
970 | 970 | ||
971 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | 971 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ |
972 | rb->cpu_boost(true); | 972 | rb->cpu_boost(true); |
@@ -982,11 +982,11 @@ bool sudoku_generate(struct sudoku_state_t* state) | |||
982 | rb->memcpy(state,&new_state,sizeof(new_state)); | 982 | rb->memcpy(state,&new_state,sizeof(new_state)); |
983 | rb->snprintf(str,sizeof(str),"Difficulty: %s",difficulty); | 983 | rb->snprintf(str,sizeof(str),"Difficulty: %s",difficulty); |
984 | display_board(state); | 984 | display_board(state); |
985 | rb->splash(HZ*3, true, str); | 985 | rb->splash(HZ*3, str); |
986 | rb->strncpy(state->filename,GAME_FILE,MAX_PATH); | 986 | rb->strncpy(state->filename,GAME_FILE,MAX_PATH); |
987 | } else { | 987 | } else { |
988 | display_board(&new_state); | 988 | display_board(&new_state); |
989 | rb->splash(HZ*2, true, "Aborted"); | 989 | rb->splash(HZ*2, "Aborted"); |
990 | } | 990 | } |
991 | return res; | 991 | return res; |
992 | } | 992 | } |
@@ -1079,7 +1079,7 @@ int sudoku_edit_menu(struct sudoku_state_t* state) | |||
1079 | if (save_sudoku(state)) { | 1079 | if (save_sudoku(state)) { |
1080 | state->editmode=0; | 1080 | state->editmode=0; |
1081 | } else { | 1081 | } else { |
1082 | rb->splash(HZ*2, true, "Save failed"); | 1082 | rb->splash(HZ*2, "Save failed"); |
1083 | } | 1083 | } |
1084 | break; | 1084 | break; |
1085 | 1085 | ||
@@ -1101,7 +1101,7 @@ void move_cursor(struct sudoku_state_t* state, int newx, int newy) | |||
1101 | 1101 | ||
1102 | /* Check that the character at the cursor position is legal */ | 1102 | /* Check that the character at the cursor position is legal */ |
1103 | if (check_status(state)) { | 1103 | if (check_status(state)) { |
1104 | rb->splash(HZ*2, true, "Illegal move!"); | 1104 | rb->splash(HZ*2, "Illegal move!"); |
1105 | /* Ignore any button presses during the splash */ | 1105 | /* Ignore any button presses during the splash */ |
1106 | rb->button_clear_queue(); | 1106 | rb->button_clear_queue(); |
1107 | return; | 1107 | return; |
@@ -1148,7 +1148,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
1148 | } | 1148 | } |
1149 | } else { | 1149 | } else { |
1150 | if (!load_sudoku(&state,(char*)parameter)) { | 1150 | if (!load_sudoku(&state,(char*)parameter)) { |
1151 | rb->splash(HZ*2, true, "Load error"); | 1151 | rb->splash(HZ*2, "Load error"); |
1152 | return(PLUGIN_ERROR); | 1152 | return(PLUGIN_ERROR); |
1153 | } | 1153 | } |
1154 | } | 1154 | } |
@@ -1167,7 +1167,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
1167 | /* Exit game */ | 1167 | /* Exit game */ |
1168 | case SUDOKU_BUTTON_QUIT: | 1168 | case SUDOKU_BUTTON_QUIT: |
1169 | if (check_status(&state)) { | 1169 | if (check_status(&state)) { |
1170 | rb->splash(HZ*2, true, "Illegal move!"); | 1170 | rb->splash(HZ*2, "Illegal move!"); |
1171 | /* Ignore any button presses during the splash */ | 1171 | /* Ignore any button presses during the splash */ |
1172 | rb->button_clear_queue(); | 1172 | rb->button_clear_queue(); |
1173 | } else { | 1173 | } else { |
@@ -1316,7 +1316,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
1316 | #endif | 1316 | #endif |
1317 | /* Don't let the user leave a game in a bad state */ | 1317 | /* Don't let the user leave a game in a bad state */ |
1318 | if (check_status(&state)) { | 1318 | if (check_status(&state)) { |
1319 | rb->splash(HZ*2, true, "Illegal move!"); | 1319 | rb->splash(HZ*2, "Illegal move!"); |
1320 | /* Ignore any button presses during the splash */ | 1320 | /* Ignore any button presses during the splash */ |
1321 | rb->button_clear_queue(); | 1321 | rb->button_clear_queue(); |
1322 | } else { | 1322 | } else { |