From 1c4455e2ffdcc59e5424fd7ce02849fd40c1f623 Mon Sep 17 00:00:00 2001 From: Wonki Kim Date: Tue, 17 Dec 2019 11:42:28 +0900 Subject: [PATCH] fix a build error Change-Id: Id1b75f842edf833fc0a8137da362d1848520112e --- libaurum/src/DeviceImpl/TM1Impl.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libaurum/src/DeviceImpl/TM1Impl.cc b/libaurum/src/DeviceImpl/TM1Impl.cc index 82d4eef..087841c 100644 --- a/libaurum/src/DeviceImpl/TM1Impl.cc +++ b/libaurum/src/DeviceImpl/TM1Impl.cc @@ -75,9 +75,10 @@ bool TM1Impl::drag(const int sx, const int sy, const int ex, const int ey, { #ifdef GBSBUILD int i, j; - + int dur; // TODO fixed fps implementation - if (duration < 10) duration = 10; + if (duration < 10) dur = 10; + else dur = duration; i = sx, j = sy; LOG_SCOPE_F(INFO, "flicking (%d, %d)", i, j); @@ -87,7 +88,7 @@ bool TM1Impl::drag(const int sx, const int sy, const int ex, const int ey, for (; i <= ex && j <= ey; i += (ex - sx) / 10, j += (ey - sy) / 10) { efl_util_input_generate_touch(mFakeTouchHandle, 0, EFL_UTIL_INPUT_TOUCH_UPDATE, i, j); - usleep(duration * 1000); + usleep(dur * 1000); LOG_SCOPE_F(INFO, "flicking (%d, %d)", i, j); } LOG_SCOPE_F(INFO, "flicking (%d, %d)", i, j); -- 2.7.4