1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Jonathan Gordon 2011-12-06 10:30:13 +00:00
parent 694502a965
commit a55982d130

View file

@ -688,7 +688,7 @@ static void gwps_enter_wps(void)
#ifdef HAVE_TOUCHSCREEN #ifdef HAVE_TOUCHSCREEN
gwps = skin_get_gwps(WPS, SCREEN_MAIN); gwps = skin_get_gwps(WPS, SCREEN_MAIN);
skin_disarm_touchregions(gwps->data); skin_disarm_touchregions(gwps->data);
if (!gwps->data->touchregions) if (gwps->data->touchregions < 0)
touchscreen_set_mode(TOUCHSCREEN_BUTTON); touchscreen_set_mode(TOUCHSCREEN_BUTTON);
#endif #endif
/* force statusbar/skin update since we just cleared the whole screen */ /* force statusbar/skin update since we just cleared the whole screen */