diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-08-04 12:00:18 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-08-04 12:00:18 +0000 |
commit | f0611f878101caa323b3b0693c0cf7170f59fe00 (patch) | |
tree | a49fa2bbc82d99c21d52c6db4d0991797228e50c /apps/gui/wps.c | |
parent | 49865b23f601e636c9a80b21826fc607f1964eb5 (diff) |
Force touchscreen targets into 3x3 grid mode when entering the wps/radio if the skin hasnt set any regions
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27692 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/wps.c')
-rw-r--r-- | apps/gui/wps.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/gui/wps.c b/apps/gui/wps.c index 8b3f671e34..df00080f2c 100644 --- a/apps/gui/wps.c +++ b/apps/gui/wps.c @@ -633,6 +633,9 @@ static void gwps_leave_wps(void) #endif /* unhandle statusbar update delay */ sb_skin_set_update_delay(DEFAULT_UPDATE_DELAY); +#ifdef HAVE_TOUCHSCREEN + touchscreen_set_mode(global_settings.touch_mode); +#endif } /* @@ -665,10 +668,12 @@ static void gwps_enter_wps(void) display->clear_display(); skin_update(gwps, SKIN_REFRESH_ALL); + } #ifdef HAVE_TOUCHSCREEN - skin_disarm_touchregions(gui_wps[i].data); + skin_disarm_touchregions(gui_wps[SCREEN_MAIN].data); + if (!gui_wps[SCREEN_MAIN].data->touchregions) + touchscreen_set_mode(TOUCHSCREEN_BUTTON); #endif - } /* force statusbar/skin update since we just cleared the whole screen */ send_event(GUI_EVENT_ACTIONUPDATE, (void*)1); } |