1
0
Fork 0
forked from len0rd/rockbox

Bring mpegplayer backlight fix to the other plugins, this also fixes some wrongly ifdef'd backlight calls.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14352 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Peter D'Hoye 2007-08-15 12:42:09 +00:00
parent f2b5c29234
commit cb53e3cef4
19 changed files with 100 additions and 87 deletions

View file

@ -18,6 +18,7 @@
****************************************************************************/
#include "plugin.h"
#include "configfile.h"
#include "helper.h"
PLUGIN_HEADER
@ -2332,9 +2333,8 @@ bool launch_wormlet(void)
rb->lcd_clear_display();
/* Permanently enable the backlight (unless the user has turned it off) */
if (rb->global_settings->backlight_timeout > 0)
rb->backlight_set_timeout(1);
/* Turn off backlight timeout */
backlight_force_on(); /* backlight control in lib/helper.c */
/* start the game */
while (game_result == 1)
@ -2343,8 +2343,8 @@ bool launch_wormlet(void)
switch (game_result)
{
case 2:
/* Restore user's original backlight setting */
rb->backlight_set_timeout(rb->global_settings->backlight_timeout);
/* Turn on backlight timeout (revert to settings) */
backlight_use_settings(); /* backlight control in lib/helper.c */
return false;
break;
}