From 60413d898edd43127cdd3e6cc066658933ac7a8d Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Tue, 25 Mar 2008 00:20:59 +0000 Subject: [PATCH] D'oh - fix a silly #ifdef mistake that caused problems with remote WPSs using viewports. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16787 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/wps_parser.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/gui/wps_parser.c b/apps/gui/wps_parser.c index fe601c8855..7aa604ecdc 100644 --- a/apps/gui/wps_parser.c +++ b/apps/gui/wps_parser.c @@ -610,7 +610,7 @@ static int parse_viewport(const char *wps_bufptr, } } else -#else +#endif { if ((vp->x >= LCD_WIDTH) || ((vp->x + vp->width) > LCD_WIDTH) || @@ -620,7 +620,6 @@ static int parse_viewport(const char *wps_bufptr, return WPS_ERROR_INVALID_PARAM; } } -#endif wps_data->viewports[wps_data->num_viewports-1].last_line = wps_data->num_lines - 1;