fix a build error accepted/tizen/unified/20191230.120941 submit/tizen/20191230.005131
authorWonki Kim <wonki_.kim@samsung.com>
Tue, 17 Dec 2019 02:42:28 +0000 (11:42 +0900)
committerJongmin Lee <jm105.lee@samsung.com>
Mon, 30 Dec 2019 00:27:52 +0000 (09:27 +0900)
Change-Id: Id1b75f842edf833fc0a8137da362d1848520112e

libaurum/src/DeviceImpl/TM1Impl.cc

index 82d4eef..087841c 100644 (file)
@@ -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);