summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2011-12-06 10:30:13 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2011-12-06 10:30:13 +0000
commita55982d130c45ebb1b227296943b4173b61ce17d (patch)
tree7d278e3e92ab868fe1910691bbdb1d106a894a67
parent694502a96576afb22af4de21dfb85002e8ab44fc (diff)
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
-rw-r--r--apps/gui/wps.c2
1 files changed, 1 insertions, 1 deletions
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 */