summaryrefslogtreecommitdiff
path: root/apps/plugins/pdbox/pdbox.c
diff options
context:
space:
mode:
authorWincent Balin <wincent@rockbox.org>2010-07-10 06:21:21 +0000
committerWincent Balin <wincent@rockbox.org>2010-07-10 06:21:21 +0000
commit9bb36b0c8efb27dc7c4932d1d7643d50a4b8a2f9 (patch)
tree13ef43436ff4792f8e8f95f0c138e44e165fffde /apps/plugins/pdbox/pdbox.c
parent0b86dda3101b0e5198df5022e6dbd8295ef66a72 (diff)
downloadrockbox-9bb36b0c8efb27dc7c4932d1d7643d50a4b8a2f9.tar.gz
rockbox-9bb36b0c8efb27dc7c4932d1d7643d50a4b8a2f9.zip
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/pdbox/pdbox.c')
-rw-r--r--apps/plugins/pdbox/pdbox.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/plugins/pdbox/pdbox.c b/apps/plugins/pdbox/pdbox.c
index c5aa7aaf74..4fa6978417 100644
--- a/apps/plugins/pdbox/pdbox.c
+++ b/apps/plugins/pdbox/pdbox.c
@@ -22,6 +22,8 @@
22#include "plugin.h" 22#include "plugin.h"
23#include "pdbox.h" 23#include "pdbox.h"
24 24
25#include "lib/helper.h"
26
25#include "PDa/src/m_pd.h" 27#include "PDa/src/m_pd.h"
26#include "PDa/src/s_stuff.h" 28#include "PDa/src/s_stuff.h"
27 29
@@ -245,6 +247,9 @@ enum plugin_status plugin_start(const void* parameter)
245 /* If having an error creating threads, bail out. */ 247 /* If having an error creating threads, bail out. */
246 if(core_thread_id == 0 || gui_thread_id == 0) 248 if(core_thread_id == 0 || gui_thread_id == 0)
247 return PLUGIN_ERROR; 249 return PLUGIN_ERROR;
250
251 /* Make backlight remain on -- making music requires attention. */
252 backlight_force_on();
248 253
249 /* Main loop. */ 254 /* Main loop. */
250 while(!quit) 255 while(!quit)
@@ -255,6 +260,9 @@ enum plugin_status plugin_start(const void* parameter)
255 /* Sleep to the next time slice. */ 260 /* Sleep to the next time slice. */
256 rb->sleep(1); 261 rb->sleep(1);
257 } 262 }
263
264 /* Restore backlight. */
265 backlight_use_settings();
258 266
259 /* Wait for threads to complete. */ 267 /* Wait for threads to complete. */
260 rb->thread_wait(gui_thread_id); 268 rb->thread_wait(gui_thread_id);