From c78d55a31147fcd0775b076c182cdcb265426013 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Sun, 19 Sep 2010 08:17:02 +0000 Subject: [PATCH] kbd_input(): move sc assignement under #ifdef HAVE_TOUCHSCREEN git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28112 a1c6a512-1295-4272-9138-f99709370657 --- apps/recorder/keyboard.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/recorder/keyboard.c b/apps/recorder/keyboard.c index c48eced263..f31d63546a 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