pdbox: Now backlight does not fade out -- making music requires attention.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27368 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0b86dda310
commit
9bb36b0c8e
1 changed files with 8 additions and 0 deletions
|
@ -22,6 +22,8 @@
|
|||
#include "plugin.h"
|
||||
#include "pdbox.h"
|
||||
|
||||
#include "lib/helper.h"
|
||||
|
||||
#include "PDa/src/m_pd.h"
|
||||
#include "PDa/src/s_stuff.h"
|
||||
|
||||
|
@ -245,6 +247,9 @@ enum plugin_status plugin_start(const void* parameter)
|
|||
/* If having an error creating threads, bail out. */
|
||||
if(core_thread_id == 0 || gui_thread_id == 0)
|
||||
return PLUGIN_ERROR;
|
||||
|
||||
/* Make backlight remain on -- making music requires attention. */
|
||||
backlight_force_on();
|
||||
|
||||
/* Main loop. */
|
||||
while(!quit)
|
||||
|
@ -255,6 +260,9 @@ enum plugin_status plugin_start(const void* parameter)
|
|||
/* Sleep to the next time slice. */
|
||||
rb->sleep(1);
|
||||
}
|
||||
|
||||
/* Restore backlight. */
|
||||
backlight_use_settings();
|
||||
|
||||
/* Wait for threads to complete. */
|
||||
rb->thread_wait(gui_thread_id);
|
||||
|
|
Loading…
Reference in a new issue