diff options
author | Marcoen Hirschberg <marcoen@gmail.com> | 2005-12-09 01:11:14 +0000 |
---|---|---|
committer | Marcoen Hirschberg <marcoen@gmail.com> | 2005-12-09 01:11:14 +0000 |
commit | 53a56c159383ad608e9f76e49c164d10be850b69 (patch) | |
tree | 1fd102fddd5bda4286047ab56af23b6bf6cd5869 /apps/gui/gwps.c | |
parent | 8e44d4bdc7c5d3f8afe98ad70e1de533c9df9bbe (diff) |
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
Diffstat (limited to 'apps/gui/gwps.c')
-rw-r--r-- | apps/gui/gwps.c | 43 |
1 files changed, 1 insertions, 42 deletions
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; s<WPS_MAX_SUBLINES; s++) - { - any_defined_line = false; - for (i=0; i<WPS_MAX_LINES; i++) - { - if (wps_data->format_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; |