From 7d1117fe4f594c9ef8c7faef3dea701db0526255 Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Sun, 29 Jan 2006 14:16:30 +0000 Subject: Cache wps image files to allow really fast boot. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8483 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/gwps.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps/gui/gwps.c') 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, wps_data->img_buf_ptr = wps_data->img_buf; /* where in image buffer */ wps_data->img_buf_free = IMG_BUFSIZE; /* free space in image buffer */ + wps_initialize_bmp_cache(ROCKBOX_DIR "/.wpscache"); #endif while( ( read_line(fd, &wps_data->format_buffer[start], sizeof(wps_data->format_buffer)-start) ) > 0 ) @@ -880,6 +881,10 @@ bool wps_data_load(struct wps_data *wps_data, } } +#ifdef HAVE_LCD_BITMAP + wps_close_bmp_cache(ROCKBOX_DIR "/.wpscache"); +#endif + if (start > 0) { gui_wps_format(wps_data); -- cgit v1.2.3