diff options
| author | Rafaël Carré <rafael.carre@gmail.com> | 2010-09-19 08:17:02 +0000 |
|---|---|---|
| committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-09-19 08:17:02 +0000 |
| commit | c78d55a31147fcd0775b076c182cdcb265426013 (patch) | |
| tree | 770be89c2a0cdc996ee4083f44dbeff3e6bf536d /apps | |
| parent | 37c1192753038816e77dc59b04e5c068d4bf78e8 (diff) | |
| download | rockbox-c78d55a31147fcd0775b076c182cdcb265426013.zip rockbox-c78d55a31147fcd0775b076c182cdcb265426013.tar.gz rockbox-c78d55a31147fcd0775b076c182cdcb265426013.tar.bz2 rockbox-c78d55a31147fcd0775b076c182cdcb265426013.tar.xz | |
kbd_input(): move sc assignement under #ifdef HAVE_TOUCHSCREEN
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28112 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/recorder/keyboard.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/recorder/keyboard.c b/apps/recorder/keyboard.c index c48eced..f31d635 100644 --- a/apps/recorder/keyboard.c +++ b/apps/recorder/keyboard.c @@ -453,7 +453,6 @@ int kbd_input(char* text, int buflen) const int button_screen = 0; #endif struct keyboard_parameters *pm; - struct screen *sc; state.len_utf8 = utf8length(state.text); @@ -492,10 +491,12 @@ int kbd_input(char* text, int buflen) button_screen = (get_action_statuscode(NULL) & ACTION_REMOTE) ? 1 : 0; #endif pm = ¶m[button_screen]; - sc = &screens[button_screen]; #ifdef HAVE_TOUCHSCREEN if (button == ACTION_TOUCHSCREEN) + { + struct screen *sc = &screens[button_screen]; button = keyboard_touchscreen(pm, sc, &state); + } #endif /* Remap some buttons to allow to move |