forked from len0rd/rockbox
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 "plugin.h"
|
||||||
#include "pdbox.h"
|
#include "pdbox.h"
|
||||||
|
|
||||||
|
#include "lib/helper.h"
|
||||||
|
|
||||||
#include "PDa/src/m_pd.h"
|
#include "PDa/src/m_pd.h"
|
||||||
#include "PDa/src/s_stuff.h"
|
#include "PDa/src/s_stuff.h"
|
||||||
|
|
||||||
|
@ -246,6 +248,9 @@ enum plugin_status plugin_start(const void* parameter)
|
||||||
if(core_thread_id == 0 || gui_thread_id == 0)
|
if(core_thread_id == 0 || gui_thread_id == 0)
|
||||||
return PLUGIN_ERROR;
|
return PLUGIN_ERROR;
|
||||||
|
|
||||||
|
/* Make backlight remain on -- making music requires attention. */
|
||||||
|
backlight_force_on();
|
||||||
|
|
||||||
/* Main loop. */
|
/* Main loop. */
|
||||||
while(!quit)
|
while(!quit)
|
||||||
{
|
{
|
||||||
|
@ -256,6 +261,9 @@ enum plugin_status plugin_start(const void* parameter)
|
||||||
rb->sleep(1);
|
rb->sleep(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Restore backlight. */
|
||||||
|
backlight_use_settings();
|
||||||
|
|
||||||
/* Wait for threads to complete. */
|
/* Wait for threads to complete. */
|
||||||
rb->thread_wait(gui_thread_id);
|
rb->thread_wait(gui_thread_id);
|
||||||
rb->thread_wait(core_thread_id);
|
rb->thread_wait(core_thread_id);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue