summaryrefslogtreecommitdiff
path: root/apps/plugins/doom
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2008-01-06 14:05:55 +0000
committerJens Arnold <amiconn@rockbox.org>2008-01-06 14:05:55 +0000
commit2aa0c4c66b64efd574b500a8787cb2ef37c0232b (patch)
treebbee8c1e02a84737ab49eaa29010a704ff111810 /apps/plugins/doom
parent919caf0208a7a6ed4a5f7b920c692e758d9d3250 (diff)
Doom: Keep the light on during gameplay.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16004 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/doom')
-rw-r--r--apps/plugins/doom/rockdoom.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/apps/plugins/doom/rockdoom.c b/apps/plugins/doom/rockdoom.c
index c0ff83e9a6..360ddf0358 100644
--- a/apps/plugins/doom/rockdoom.c
+++ b/apps/plugins/doom/rockdoom.c
@@ -38,6 +38,7 @@
#include "hu_stuff.h"
#include "st_stuff.h"
#include "lib/oldmenuapi.h"
+#include "lib/helper.h"
PLUGIN_HEADER
PLUGIN_IRAM_DECLARE
@@ -708,10 +709,12 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
if (result < 0)
{
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
- rb->cpu_boost(false);
+ rb->cpu_boost(false);
#endif
- if( result == -1 ) return PLUGIN_OK; // Quit was selected
- else if( result == -2 ) return PLUGIN_ERROR; // Missing base wads
+ if( result == -1 )
+ return PLUGIN_OK; // Quit was selected
+ else
+ return PLUGIN_ERROR; // Missing base wads
}
#if(LCD_HEIGHT>LCD_WIDTH)
@@ -736,6 +739,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
systemvol= rb->global_settings->volume-rb->global_settings->volume%((rb->sound_max(SOUND_VOLUME)-rb->sound_min(SOUND_VOLUME))/15);
general_translucency = default_translucency; // phares
+ backlight_force_on(rb);
#ifdef RB_PROFILE
rb->profile_thread();
#endif
@@ -747,6 +751,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
#ifdef RB_PROFILE
rb->profstop();
#endif
+ backlight_use_settings(rb);
M_SaveDefaults ();