forked from enlightenment/efl
ecore_x: Fix bug in ecore_x_region_invert
As bounds is a pointer, bounds + num will always be postive, so this is an eternal loop. In addition, XFixesInvertRegion only accepts one region, so num must be 1. Fixes CID 1039469
This commit is contained in:
parent
c8b8738612
commit
8b72bd6e6d
|
@ -259,11 +259,9 @@ ecore_x_region_invert(Ecore_X_Region dest,
|
|||
{
|
||||
#ifdef ECORE_XFIXES
|
||||
XRectangle *xbound;
|
||||
int num = 0;
|
||||
int num = 1;
|
||||
|
||||
LOGFN(__FILE__, __LINE__, __FUNCTION__);
|
||||
while (bounds + num)
|
||||
num++;
|
||||
xbound = _ecore_x_rectangle_ecore_to_x(bounds, num);
|
||||
|
||||
XFixesInvertRegion(_ecore_x_disp, dest, xbound, source);
|
||||
|
|
Loading…
Reference in New Issue