diff options
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; |