From 23aa325d1dc7911b7f50b829dfe8b9d23005b9d1 Mon Sep 17 00:00:00 2001 From: Peter D'Hoye Date: Mon, 1 May 2006 19:50:44 +0000 Subject: 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 --- apps/gui/gwps-common.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'apps') 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 -- cgit v1.2.3