From 71e1941833d758566af5b37a583f8e2d02fa0af5 Mon Sep 17 00:00:00 2001 From: Maurus Cuelenaere Date: Thu, 21 May 2009 13:10:55 +0000 Subject: Touchscreen targets: fix time-set screen git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21011 a1c6a512-1295-4272-9138-f99709370657 --- apps/screens.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'apps') diff --git a/apps/screens.c b/apps/screens.c index bc13a4d804..8c2b145550 100644 --- a/apps/screens.c +++ b/apps/screens.c @@ -637,7 +637,15 @@ bool set_time_screen(const char* title, struct tm *tm) break; } +#ifdef HAVE_TOUCHSCREEN + enum touchscreen_mode old_mode = touchscreen_get_mode(); + + touchscreen_set_mode(TOUCHSCREEN_BUTTON); +#endif button = get_action(CONTEXT_SETTINGS_TIME, TIMEOUT_BLOCK); +#ifdef HAVE_TOUCHSCREEN + touchscreen_set_mode(old_mode); +#endif switch ( button ) { case ACTION_STD_PREV: cursorpos = clamp_value_wrap(--cursorpos, 5, 0); -- cgit v1.2.3