diff options
Diffstat (limited to 'apps/gui/gwps.c')
-rw-r--r-- | apps/gui/gwps.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/gui/gwps.c b/apps/gui/gwps.c index d7d436c089..e7ae67266f 100644 --- a/apps/gui/gwps.c +++ b/apps/gui/gwps.c | |||
@@ -862,6 +862,7 @@ bool wps_data_load(struct wps_data *wps_data, | |||
862 | wps_data->img_buf_ptr = wps_data->img_buf; /* where in image buffer */ | 862 | wps_data->img_buf_ptr = wps_data->img_buf; /* where in image buffer */ |
863 | 863 | ||
864 | wps_data->img_buf_free = IMG_BUFSIZE; /* free space in image buffer */ | 864 | wps_data->img_buf_free = IMG_BUFSIZE; /* free space in image buffer */ |
865 | wps_initialize_bmp_cache(ROCKBOX_DIR "/.wpscache"); | ||
865 | #endif | 866 | #endif |
866 | while( ( read_line(fd, &wps_data->format_buffer[start], | 867 | while( ( read_line(fd, &wps_data->format_buffer[start], |
867 | sizeof(wps_data->format_buffer)-start) ) > 0 ) | 868 | sizeof(wps_data->format_buffer)-start) ) > 0 ) |
@@ -880,6 +881,10 @@ bool wps_data_load(struct wps_data *wps_data, | |||
880 | } | 881 | } |
881 | } | 882 | } |
882 | 883 | ||
884 | #ifdef HAVE_LCD_BITMAP | ||
885 | wps_close_bmp_cache(ROCKBOX_DIR "/.wpscache"); | ||
886 | #endif | ||
887 | |||
883 | if (start > 0) | 888 | if (start > 0) |
884 | { | 889 | { |
885 | gui_wps_format(wps_data); | 890 | gui_wps_format(wps_data); |