From a10ff23fcf3651996c2687e9c10b0844a9f5dbe3 Mon Sep 17 00:00:00 2001 From: Maurus Cuelenaere Date: Sun, 19 Apr 2009 12:46:04 +0000 Subject: [PATCH] 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 --- apps/plugin.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/apps/plugin.c b/apps/plugin.c index 087bf74a38..d1e9a7949b 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -756,9 +756,19 @@ 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();