From a55982d130c45ebb1b227296943b4173b61ce17d Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Tue, 6 Dec 2011 10:30:13 +0000 Subject: Fix touchscreens so entering the WPS with a skin with no touchregions reverts to grid mode (caused by r30991) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31156 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/wps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/gui') diff --git a/apps/gui/wps.c b/apps/gui/wps.c index 284aa57a3e..b4ffe2a88b 100644 --- a/apps/gui/wps.c +++ b/apps/gui/wps.c @@ -688,7 +688,7 @@ static void gwps_enter_wps(void) #ifdef HAVE_TOUCHSCREEN gwps = skin_get_gwps(WPS, SCREEN_MAIN); skin_disarm_touchregions(gwps->data); - if (!gwps->data->touchregions) + if (gwps->data->touchregions < 0) touchscreen_set_mode(TOUCHSCREEN_BUTTON); #endif /* force statusbar/skin update since we just cleared the whole screen */ -- cgit v1.2.3