1
0
Fork 0
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:
Christian Gmeiner 2006-04-09 13:47:28 +00:00
parent 8825ee606d
commit f03e0530c3

View file

@ -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);