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:
parent
f2b5c29234
commit
cb53e3cef4
19 changed files with 100 additions and 87 deletions
|
@ -27,6 +27,7 @@
|
|||
#include "plugin.h"
|
||||
#include "sh7034.h"
|
||||
#include "system.h"
|
||||
#include "helper.h"
|
||||
|
||||
#ifndef SIMULATOR /* not for simulator by now */
|
||||
#ifdef HAVE_LCD_BITMAP /* and definitely not for the Player, haha */
|
||||
|
@ -559,8 +560,8 @@ void Cleanup(void *fd)
|
|||
if (gPlay.bHasAudio)
|
||||
rb->mp3_play_stop(); /* stop audio ISR */
|
||||
|
||||
/* restore normal 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 */
|
||||
|
||||
/* restore normal contrast */
|
||||
rb->lcd_set_contrast(rb->global_settings->contrast);
|
||||
|
@ -924,8 +925,8 @@ int main(char* filename)
|
|||
if (gFileHdr.video_format == VIDEOFORMAT_RAW)
|
||||
{
|
||||
gPlay.bHasVideo = true;
|
||||
if (rb->global_settings->backlight_timeout > 0)
|
||||
rb->backlight_set_timeout(1); /* keep the light on */
|
||||
/* Turn off backlight timeout */
|
||||
backlight_force_on(); /* backlight control in lib/helper.c */
|
||||
}
|
||||
|
||||
/* prepare audio playback, if contained */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue