summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2008-03-25 00:20:59 +0000
committerDave Chapman <dave@dchapman.com>2008-03-25 00:20:59 +0000
commit60413d898edd43127cdd3e6cc066658933ac7a8d (patch)
tree031ae6f7bd52efb6973c4d8945e5ea75e89172df
parenta0e454971736221bd1db85db9c882dcc6540726e (diff)
downloadrockbox-60413d898edd43127cdd3e6cc066658933ac7a8d.tar.gz
rockbox-60413d898edd43127cdd3e6cc066658933ac7a8d.zip
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
-rw-r--r--apps/gui/wps_parser.c3
1 files changed, 1 insertions, 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;