diff options
-rw-r--r-- | apps/plugins/pictureflow/pictureflow.c | 8 |
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 @@ | |||
38 | 38 | ||
39 | 39 | ||
40 | /* Capacity 10 000 entries (for example 10k different albums) */ | 40 | /* Capacity 10 000 entries (for example 10k different albums) */ |
41 | #define UNIQBUF_SIZE (64*1024) | 41 | #if PLUGIN_BUFFER_SIZE > 0x10000 |
42 | #define UNIQBUF_SIZE (64*1024) | ||
43 | #else /*Bugfix -- Several players havent enough Ram to allow such a large buffer */ | ||
44 | #define UNIQBUF_SIZE (16*1024) | ||
45 | #endif | ||
42 | static long uniqbuf[UNIQBUF_SIZE / sizeof(long)]; | 46 | static long uniqbuf[UNIQBUF_SIZE / sizeof(long)]; |
43 | 47 | ||
44 | /******************************* Globals ***********************************/ | 48 | /******************************* Globals ***********************************/ |
@@ -2829,7 +2833,7 @@ static void draw_album_text(void) | |||
2829 | 2833 | ||
2830 | albumtxt_x = get_scroll_line_offset(PF_SCROLL_ALBUM); | 2834 | albumtxt_x = get_scroll_line_offset(PF_SCROLL_ALBUM); |
2831 | mylcd_putsxy(albumtxt_x, albumtxt_y, albumtxt); | 2835 | mylcd_putsxy(albumtxt_x, albumtxt_y, albumtxt); |
2832 | set_scroll_line(artisttxt, PF_SCROLL_ARTIST); | 2836 | |
2833 | if ((show_album_name == ALBUM_AND_ARTIST_TOP) | 2837 | if ((show_album_name == ALBUM_AND_ARTIST_TOP) |
2834 | || (show_album_name == ALBUM_AND_ARTIST_BOTTOM)){ | 2838 | || (show_album_name == ALBUM_AND_ARTIST_BOTTOM)){ |
2835 | 2839 | ||