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) | |
download | rockbox-53a56c159383ad608e9f76e49c164d10be850b69.tar.gz rockbox-53a56c159383ad608e9f76e49c164d10be850b69.zip |
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) | |||
752 | from a (wps-)file (isfile = true)*/ | 752 | from a (wps-)file (isfile = true)*/ |
753 | bool wps_data_load(struct wps_data *wps_data, | 753 | bool wps_data_load(struct wps_data *wps_data, |
754 | const char *buf, | 754 | const char *buf, |
755 | bool isfile, | 755 | bool isfile) |
756 | bool display) | ||
757 | { | 756 | { |
758 | int i, s; | ||
759 | int fd; | 757 | int fd; |
760 | 758 | ||
761 | if(!wps_data || !buf) | 759 | if(!wps_data || !buf) |
@@ -832,45 +830,6 @@ bool wps_data_load(struct wps_data *wps_data, | |||
832 | 830 | ||
833 | close(fd); | 831 | close(fd); |
834 | 832 | ||
835 | if ( display ) { | ||
836 | bool any_defined_line; | ||
837 | int z; | ||
838 | FOR_NB_SCREENS(z) | ||
839 | screens[z].clear_display(); | ||
840 | #ifdef HAVE_LCD_BITMAP | ||
841 | FOR_NB_SCREENS(z) | ||
842 | screens[z].setmargins(0,0); | ||
843 | #endif | ||
844 | for (s=0; s<WPS_MAX_SUBLINES; s++) | ||
845 | { | ||
846 | any_defined_line = false; | ||
847 | for (i=0; i<WPS_MAX_LINES; i++) | ||
848 | { | ||
849 | if (wps_data->format_lines[i][s] && | ||
850 | wps_data->format_lines[i][s][0]) | ||
851 | { | ||
852 | FOR_NB_SCREENS(z) | ||
853 | screens[z].puts(0, i, | ||
854 | wps_data-> | ||
855 | format_lines[i][s]); | ||
856 | any_defined_line = true; | ||
857 | } | ||
858 | else | ||
859 | { | ||
860 | FOR_NB_SCREENS(z) | ||
861 | screens[z].puts(0, i, " "); | ||
862 | } | ||
863 | } | ||
864 | if (any_defined_line) | ||
865 | { | ||
866 | #ifdef HAVE_LCD_BITMAP | ||
867 | FOR_NB_SCREENS(z) | ||
868 | screens[z].update(); | ||
869 | #endif | ||
870 | sleep(HZ/2); | ||
871 | } | ||
872 | } | ||
873 | } | ||
874 | wps_data->wps_loaded = true; | 833 | wps_data->wps_loaded = true; |
875 | 834 | ||
876 | return start > 0; | 835 | return start > 0; |