ecore_fb: fix divided by zero

Summary:
w and h must not be zero.
because of the divide_by_zero exception occurs on line 649 and 653.

Test Plan: N/A

Reviewers: woohyun, kimcinoo, cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D5873

Reviewed-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
junsu choi 2018-04-09 10:11:19 -07:00 committed by Cedric BAIL
parent 78f4babbb5
commit 0f06f222ba
1 changed files with 1 additions and 1 deletions

View File

@ -634,7 +634,7 @@ EAPI void
ecore_fb_input_device_axis_size_set(Ecore_Fb_Input_Device *dev, int w, int h)
{
if (!dev) return;
if ((w < 0) || (h < 0)) return;
if ((w <= 0) || (h <= 0)) return;
/* FIXME
* this code is for a touchscreen device,
* make it configurable (ABSOLUTE | RELATIVE)