forked from len0rd/rockbox
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:
parent
2dc2054319
commit
71e1941833
1 changed files with 8 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue