Touchscreen targets: switch to grid mode before launching a plugin and switch back to the original mode when leaving it
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20738 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
00b407b04f
commit
a10ff23fcf
1 changed files with 10 additions and 0 deletions
|
@ -757,8 +757,18 @@ int plugin_load(const char* plugin, const void* parameter)
|
|||
cpucache_invalidate();
|
||||
oldbars = viewportmanager_set_statusbar(VP_SB_HIDE_ALL);
|
||||
|
||||
#ifdef HAVE_TOUCHSCREEN
|
||||
enum touchscreen_mode old_mode = touchscreen_get_mode();
|
||||
|
||||
touchscreen_set_mode(TOUCHSCREEN_BUTTON);
|
||||
#endif
|
||||
|
||||
rc = hdr->entry_point(parameter);
|
||||
|
||||
#ifdef HAVE_TOUCHSCREEN
|
||||
touchscreen_set_mode(old_mode);
|
||||
#endif
|
||||
|
||||
viewportmanager_set_statusbar(oldbars);
|
||||
|
||||
button_clear_queue();
|
||||
|
|
Loading…
Reference in a new issue