diff options
author | Peter D'Hoye <peter.dhoye@gmail.com> | 2006-05-01 19:50:44 +0000 |
---|---|---|
committer | Peter D'Hoye <peter.dhoye@gmail.com> | 2006-05-01 19:50:44 +0000 |
commit | 23aa325d1dc7911b7f50b829dfe8b9d23005b9d1 (patch) | |
tree | 6e6fee7d5528366dc0dcfbbbb38d871b0c9c7f89 | |
parent | b8d1a55fbd7d35cdb1e16373e978524b345ad25d (diff) | |
download | rockbox-23aa325d1dc7911b7f50b829dfe8b9d23005b9d1.tar.gz rockbox-23aa325d1dc7911b7f50b829dfe8b9d23005b9d1.zip |
Caption-backlight: don't keep backlight on if paused as this keeps the backlight on forever. Fixes bug 5050.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9854 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/gui/gwps-common.c | 10 |
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, if ( n < 1000 ) n = 5000; /* use 5s if backlight is always on or off */ - if ((state->id3->elapsed < 1000) || - ((state->id3->length - state->id3->elapsed) < (unsigned)n)) + if (((state->id3->elapsed < 1000) || + ((state->id3->length - state->id3->elapsed) < (unsigned)n)) && + (state->paused == false)) backlight_on(); } #endif @@ -2069,8 +2070,9 @@ bool gui_wps_refresh(struct gui_wps *gwps, int ffwd_offset, if ( n < 1000 ) n = 5000; /* use 5s if backlight is always on or off */ - if ((state->id3->elapsed < 1000) || - ((state->id3->length - state->id3->elapsed) < (unsigned)n)) + if (((state->id3->elapsed < 1000) || + ((state->id3->length - state->id3->elapsed) < (unsigned)n)) && + (state->paused == false)) remote_backlight_on(); } #endif |