forked from enlightenment/efl
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:
parent
78f4babbb5
commit
0f06f222ba
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue