diff options
| author | Wincent Balin <wincent@rockbox.org> | 2010-07-10 06:21:21 +0000 |
|---|---|---|
| committer | Wincent Balin <wincent@rockbox.org> | 2010-07-10 06:21:21 +0000 |
| commit | 9bb36b0c8efb27dc7c4932d1d7643d50a4b8a2f9 (patch) | |
| tree | 13ef43436ff4792f8e8f95f0c138e44e165fffde /apps/plugins | |
| parent | 0b86dda3101b0e5198df5022e6dbd8295ef66a72 (diff) | |
| download | rockbox-9bb36b0c8efb27dc7c4932d1d7643d50a4b8a2f9.zip rockbox-9bb36b0c8efb27dc7c4932d1d7643d50a4b8a2f9.tar.gz rockbox-9bb36b0c8efb27dc7c4932d1d7643d50a4b8a2f9.tar.bz2 rockbox-9bb36b0c8efb27dc7c4932d1d7643d50a4b8a2f9.tar.xz | |
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
Diffstat (limited to 'apps/plugins')
| -rw-r--r-- | apps/plugins/pdbox/pdbox.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/plugins/pdbox/pdbox.c b/apps/plugins/pdbox/pdbox.c index c5aa7aa..4fa6978 100644 --- a/apps/plugins/pdbox/pdbox.c +++ b/apps/plugins/pdbox/pdbox.c @@ -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); |