diff options
author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-05-21 13:10:55 +0000 |
---|---|---|
committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-05-21 13:10:55 +0000 |
commit | 71e1941833d758566af5b37a583f8e2d02fa0af5 (patch) | |
tree | e150f248e779b06aefd440ed6bc574cd25699b7c /apps | |
parent | 2dc2054319abbbd0f559a18ecfbb8416cdbd2baf (diff) |
Touchscreen targets: fix time-set screen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21011 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/screens.c | 8 |
1 files changed, 8 insertions, 0 deletions
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); |