summaryrefslogtreecommitdiff
path: root/apps/gui/gwps-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/gwps-common.c')
-rw-r--r--apps/gui/gwps-common.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index 189fc6fa31..5ab0097b2c 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -40,7 +40,6 @@
40#endif 40#endif
41#include "abrepeat.h" 41#include "abrepeat.h"
42#include "mp3_playback.h" 42#include "mp3_playback.h"
43#include "backlight.h"
44#include "lang.h" 43#include "lang.h"
45#include "misc.h" 44#include "misc.h"
46#include "splash.h" 45#include "splash.h"
@@ -2058,38 +2057,5 @@ bool gui_wps_redraw(struct gui_wps *gwps,
2058 2057
2059 display->update(); 2058 display->update();
2060 2059
2061#ifdef HAVE_BACKLIGHT
2062 if (global_settings.caption_backlight)
2063 {
2064 /* turn on backlight n seconds before track ends, and turn it off n
2065 seconds into the new track. n == backlight_timeout, or 5s */
2066 int n = global_settings.backlight_timeout * 1000;
2067
2068 if ( n < 1000 )
2069 n = 5000; /* use 5s if backlight is always on or off */
2070
2071 if (((id3->elapsed < 1000) ||
2072 ((id3->length - id3->elapsed) < (unsigned)n)) &&
2073 (state->paused == false))
2074 backlight_on();
2075 }
2076#endif
2077#ifdef HAVE_REMOTE_LCD
2078 if (global_settings.remote_caption_backlight)
2079 {
2080 /* turn on remote backlight n seconds before track ends, and turn it
2081 off n seconds into the new track. n == remote_backlight_timeout,
2082 or 5s */
2083 int n = global_settings.remote_backlight_timeout * 1000;
2084
2085 if ( n < 1000 )
2086 n = 5000; /* use 5s if backlight is always on or off */
2087
2088 if (((id3->elapsed < 1000) ||
2089 ((id3->length - id3->elapsed) < (unsigned)n)) &&
2090 (state->paused == false))
2091 remote_backlight_on();
2092 }
2093#endif
2094 return true; 2060 return true;
2095} 2061}