forked from len0rd/rockbox
make use of cpu_boost to speed up generation of new sudoku field
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9578 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8825ee606d
commit
f03e0530c3
1 changed files with 6 additions and 0 deletions
|
@ -838,7 +838,13 @@ void sudoku_generate(struct sudoku_state_t* state)
|
|||
display_board(state);
|
||||
rb->splash(0, true, "Generating...");
|
||||
|
||||
#if !defined(SIMULATOR) && defined(HAVE_ADJUSTABLE_CPU_FREQ)
|
||||
rb->cpu_boost(true);
|
||||
#endif
|
||||
sudoku_generate_board(state,&difficulty);
|
||||
#if !defined(SIMULATOR) && defined(HAVE_ADJUSTABLE_CPU_FREQ)
|
||||
rb->cpu_boost(false);
|
||||
#endif
|
||||
|
||||
rb->snprintf(str,sizeof(str),"Difficulty: %s",difficulty);
|
||||
display_board(state);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue