summaryrefslogtreecommitdiffstats
path: root/apps/plugins/pictureflow
diff options
context:
space:
mode:
authorWilliam Wilgus <me.theuser@yahoo.com>2020-06-25 12:02:16 -0400
committerWilliam Wilgus <me.theuser@yahoo.com>2020-06-25 12:02:16 -0400
commit3074ade465a3fa22bfc112747d3ab9eedad1fb6f (patch)
treeaf7558356857a7051dfb5469ab4919eac5696ac3 /apps/plugins/pictureflow
parente8a3ade0eae65a962993d1d70b6aa6d74ac639a6 (diff)
downloadrockbox-3074ade465a3fa22bfc112747d3ab9eedad1fb6f.tar.gz
rockbox-3074ade465a3fa22bfc112747d3ab9eedad1fb6f.tar.bz2
rockbox-3074ade465a3fa22bfc112747d3ab9eedad1fb6f.zip
Pictureflow Fixes -- Fixes
The name buffer is using too much ram for some targets will revisit later... removed extraneous call to set_scrol_lline Change-Id: I56d658149bcb0c50857d25924e37bcb46a612c75
Diffstat (limited to 'apps/plugins/pictureflow')
-rw-r--r--apps/plugins/pictureflow/pictureflow.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/plugins/pictureflow/pictureflow.c b/apps/plugins/pictureflow/pictureflow.c
index d6ab0f3e99..3ccfc0d3a2 100644
--- a/apps/plugins/pictureflow/pictureflow.c
+++ b/apps/plugins/pictureflow/pictureflow.c
@@ -38,7 +38,11 @@
/* Capacity 10 000 entries (for example 10k different albums) */
-#define UNIQBUF_SIZE (64*1024)
+#if PLUGIN_BUFFER_SIZE > 0x10000
+ #define UNIQBUF_SIZE (64*1024)
+#else /*Bugfix -- Several players havent enough Ram to allow such a large buffer */
+ #define UNIQBUF_SIZE (16*1024)
+#endif
static long uniqbuf[UNIQBUF_SIZE / sizeof(long)];
/******************************* Globals ***********************************/
@@ -2829,7 +2833,7 @@ static void draw_album_text(void)
albumtxt_x = get_scroll_line_offset(PF_SCROLL_ALBUM);
mylcd_putsxy(albumtxt_x, albumtxt_y, albumtxt);
- set_scroll_line(artisttxt, PF_SCROLL_ARTIST);
+
if ((show_album_name == ALBUM_AND_ARTIST_TOP)
|| (show_album_name == ALBUM_AND_ARTIST_BOTTOM)){