Touchscreen targets: fix time-set screen

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21011 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Maurus Cuelenaere 2009-05-21 13:10:55 +00:00
parent 2dc2054319
commit 71e1941833

View file

@ -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);