summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/gui/gwps-common.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index fe059f4a96..349c92b9a0 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -2053,8 +2053,9 @@ bool gui_wps_refresh(struct gui_wps *gwps, int ffwd_offset,
2053 if ( n < 1000 ) 2053 if ( n < 1000 )
2054 n = 5000; /* use 5s if backlight is always on or off */ 2054 n = 5000; /* use 5s if backlight is always on or off */
2055 2055
2056 if ((state->id3->elapsed < 1000) || 2056 if (((state->id3->elapsed < 1000) ||
2057 ((state->id3->length - state->id3->elapsed) < (unsigned)n)) 2057 ((state->id3->length - state->id3->elapsed) < (unsigned)n)) &&
2058 (state->paused == false))
2058 backlight_on(); 2059 backlight_on();
2059 } 2060 }
2060#endif 2061#endif
@@ -2069,8 +2070,9 @@ bool gui_wps_refresh(struct gui_wps *gwps, int ffwd_offset,
2069 if ( n < 1000 ) 2070 if ( n < 1000 )
2070 n = 5000; /* use 5s if backlight is always on or off */ 2071 n = 5000; /* use 5s if backlight is always on or off */
2071 2072
2072 if ((state->id3->elapsed < 1000) || 2073 if (((state->id3->elapsed < 1000) ||
2073 ((state->id3->length - state->id3->elapsed) < (unsigned)n)) 2074 ((state->id3->length - state->id3->elapsed) < (unsigned)n)) &&
2075 (state->paused == false))
2074 remote_backlight_on(); 2076 remote_backlight_on();
2075 } 2077 }
2076#endif 2078#endif