input_generator: fix a invalid condition 98/251798/1 accepted/tizen/unified/20210120.120838 submit/tizen/20210119.111029
authorjeon <jhyuni.kang@samsung.com>
Tue, 19 Jan 2021 11:01:16 +0000 (20:01 +0900)
committerjeon <jhyuni.kang@samsung.com>
Tue, 19 Jan 2021 11:01:18 +0000 (20:01 +0900)
  - change request_touch_count to max_touch_count

Change-Id: I1d1695d95872973f94894bcacde54a98d34f9508

src/efl_util.c

index 22c6e56..c6ad457 100644 (file)
@@ -1822,7 +1822,7 @@ efl_util_input_generate_touch(efl_util_inputgen_h inputgen_h, int idx,
    EINA_SAFETY_ON_FALSE_RETURN_VAL((x > 0 && y > 0), EFL_UTIL_ERROR_INVALID_PARAMETER);
    EINA_SAFETY_ON_FALSE_RETURN_VAL(inputgen_h->init_type & EFL_UTIL_INPUT_DEVTYPE_TOUCHSCREEN, EFL_UTIL_ERROR_NO_SUCH_DEVICE);
 
-   if (idx >= _eflutil.wl.devmgr.request_touch_count)
+   if (idx >= _eflutil.wl.devmgr.max_touch_count)
      return EFL_UTIL_ERROR_INVALID_PARAMETER;
 
    EINA_SAFETY_ON_NULL_RETURN_VAL(_eflutil.wl.devmgr.devicemgr, EFL_UTIL_ERROR_INVALID_PARAMETER);