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, | |||
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 |