forked from enlightenment/efl
ecore_evas: Validate shadow geometry
Negative values in shadow geometry make no sense at all, however it's happening all the time in wayland. Let's throw an ERR so it doesn't go unnoticed. Signed-off-by: Derek Foreman <derek.foreman.samsung@gmail.com> Reviewed-by: Chris Michael <cp.michael@samsung.com> Differential Revision: https://phab.enlightenment.org/D7434
This commit is contained in:
parent
70b16099a9
commit
1139cde9a6
|
@ -2793,6 +2793,10 @@ EAPI void
|
|||
ecore_evas_shadow_geometry_set(Ecore_Evas *ee, int l, int r, int t, int b)
|
||||
{
|
||||
ECORE_EVAS_CHECK(ee);
|
||||
EINA_SAFETY_ON_TRUE_RETURN(l < 0);
|
||||
EINA_SAFETY_ON_TRUE_RETURN(r < 0);
|
||||
EINA_SAFETY_ON_TRUE_RETURN(t < 0);
|
||||
EINA_SAFETY_ON_TRUE_RETURN(b < 0);
|
||||
if ((ee->shadow.l == l) && (ee->shadow.r == r) &&
|
||||
(ee->shadow.t == t) && (ee->shadow.b == b)) return;
|
||||
ee->shadow.l = l;
|
||||
|
|
Loading…
Reference in New Issue