From 9bb36b0c8efb27dc7c4932d1d7643d50a4b8a2f9 Mon Sep 17 00:00:00 2001 From: Wincent Balin Date: Sat, 10 Jul 2010 06:21:21 +0000 Subject: [PATCH] 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 --- apps/plugins/pdbox/pdbox.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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 @@ #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);