summaryrefslogtreecommitdiff
path: root/apps/wps-display.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-08-21 23:01:12 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-08-21 23:01:12 +0000
commit0ad617cbf0cc85dde241345194b76b590df567a8 (patch)
tree65931c5a10788981b17f08bca1ba83151bee2855 /apps/wps-display.c
parent658c8451ead9e7d07478c903c430af9c7799f324 (diff)
downloadrockbox-0ad617cbf0cc85dde241345194b76b590df567a8.tar.gz
rockbox-0ad617cbf0cc85dde241345194b76b590df567a8.zip
Patch #1105616 by Ray Lambert - A-B Repeat for Archos studio/recorder, still not 100% complete, but I wanted to commit it before the 2.5 feature freeze
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7380 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/wps-display.c')
-rw-r--r--apps/wps-display.c20
1 files changed, 14 insertions, 6 deletions
diff --git a/apps/wps-display.c b/apps/wps-display.c
index f6fda70377..892db8ce1a 100644
--- a/apps/wps-display.c
+++ b/apps/wps-display.c
@@ -7,7 +7,7 @@
7 * \/ \/ \/ \/ \/ 7 * \/ \/ \/ \/ \/
8 * $Id$ 8 * $Id$
9 * 9 *
10 * Copyright (C) 2002 Björn Stenberg 10 * Copyright (C) 2002 Bj�n Stenberg
11 * 11 *
12 * All files in this archive are subject to the GNU General Public License. 12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement. 13 * See the file COPYING in the source tree root for full license agreement.
@@ -44,6 +44,7 @@
44#include "sprintf.h" 44#include "sprintf.h"
45#include "backlight.h" 45#include "backlight.h"
46#include "button.h" 46#include "button.h"
47#include "abrepeat.h"
47 48
48#ifdef HAVE_LCD_BITMAP 49#ifdef HAVE_LCD_BITMAP
49#include "icons.h" 50#include "icons.h"
@@ -1214,11 +1215,18 @@ bool wps_refresh(struct mp3entry* id3,
1214 1215
1215#ifdef HAVE_LCD_BITMAP 1216#ifdef HAVE_LCD_BITMAP
1216 /* progress */ 1217 /* progress */
1217 if (flags & refresh_mode & WPS_REFRESH_PLAYER_PROGRESS) { 1218 if (flags & refresh_mode & WPS_REFRESH_PLAYER_PROGRESS)
1218 scrollbar(0, i*h + offset + (h > 7 ? (h - 6) / 2 : 1), LCD_WIDTH, 6, 1219 {
1219 id3->length?id3->length:1, 0, 1220#define PROGRESS_BAR_HEIGHT 6 /* this should probably be defined elsewhere; config-*.h perhaps? */
1220 id3->length?id3->elapsed + ff_rewind_count:0, 1221 int sby = i*h + offset + (h > 7 ? (h - 6) / 2 : 1);
1221 HORIZONTAL); 1222 scrollbar(0, sby, LCD_WIDTH, PROGRESS_BAR_HEIGHT,
1223 id3->length?id3->length:1, 0,
1224 id3->length?id3->elapsed + ff_rewind_count:0,
1225 HORIZONTAL);
1226#ifdef AB_REPEAT_ENABLE
1227 if ( ab_repeat_mode_enabled() )
1228 ab_draw_markers(id3->length, 0, sby, LCD_WIDTH, PROGRESS_BAR_HEIGHT);
1229#endif
1222 update_line = true; 1230 update_line = true;
1223 } 1231 }
1224 if (flags & refresh_mode & WPS_REFRESH_PEAK_METER) { 1232 if (flags & refresh_mode & WPS_REFRESH_PEAK_METER) {