summaryrefslogtreecommitdiffstats
path: root/firmware/target/hosted
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-09-05 20:35:51 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2013-09-05 20:35:51 +0200
commit1165a0882349ce1f1a426c642062dc06d0019265 (patch)
treebe471ad1b96280801f893142ed9d279631e5008a /firmware/target/hosted
parentdf6eb82f5156256e1999374ce9b1a159610ff9a0 (diff)
downloadrockbox-1165a0882349ce1f1a426c642062dc06d0019265.tar.gz
rockbox-1165a0882349ce1f1a426c642062dc06d0019265.zip
fix red
Change-Id: Ibca5879553a87e77014f850308d9b54cc339d474
Diffstat (limited to 'firmware/target/hosted')
-rw-r--r--firmware/target/hosted/sdl/button-sdl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/target/hosted/sdl/button-sdl.c b/firmware/target/hosted/sdl/button-sdl.c
index f69c0a509b..eb4869ae25 100644
--- a/firmware/target/hosted/sdl/button-sdl.c
+++ b/firmware/target/hosted/sdl/button-sdl.c
@@ -393,7 +393,9 @@ static void button_event(int key, bool pressed)
#endif
default:
#ifdef HAVE_TOUCHSCREEN
+# ifndef HAS_BUTTON_HOLD
if(touchscreen_is_enabled())
+# endif
new_btn = key_to_touch(key, mouse_coords);
if (!new_btn)
#endif