From 53a56c159383ad608e9f76e49c164d10be850b69 Mon Sep 17 00:00:00 2001 From: Marcoen Hirschberg Date: Fri, 9 Dec 2005 01:11:14 +0000 Subject: don't display the WPS after loading, it made rockbox crash with some WPS' git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8209 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/gwps.c | 43 +------------------------------------------ 1 file changed, 1 insertion(+), 42 deletions(-) (limited to 'apps/gui/gwps.c') diff --git a/apps/gui/gwps.c b/apps/gui/gwps.c index bd7591fb37..efe207f94a 100644 --- a/apps/gui/gwps.c +++ b/apps/gui/gwps.c @@ -752,10 +752,8 @@ static void wps_reset(struct wps_data *data) from a (wps-)file (isfile = true)*/ bool wps_data_load(struct wps_data *wps_data, const char *buf, - bool isfile, - bool display) + bool isfile) { - int i, s; int fd; if(!wps_data || !buf) @@ -832,45 +830,6 @@ bool wps_data_load(struct wps_data *wps_data, close(fd); - if ( display ) { - bool any_defined_line; - int z; - FOR_NB_SCREENS(z) - screens[z].clear_display(); -#ifdef HAVE_LCD_BITMAP - FOR_NB_SCREENS(z) - screens[z].setmargins(0,0); -#endif - for (s=0; sformat_lines[i][s] && - wps_data->format_lines[i][s][0]) - { - FOR_NB_SCREENS(z) - screens[z].puts(0, i, - wps_data-> - format_lines[i][s]); - any_defined_line = true; - } - else - { - FOR_NB_SCREENS(z) - screens[z].puts(0, i, " "); - } - } - if (any_defined_line) - { -#ifdef HAVE_LCD_BITMAP - FOR_NB_SCREENS(z) - screens[z].update(); -#endif - sleep(HZ/2); - } - } - } wps_data->wps_loaded = true; return start > 0; -- cgit v1.2.3