summaryrefslogtreecommitdiff
path: root/src/lib/ecore_evas/ecore_evas.c
diff options
context:
space:
mode:
authorDerek Foreman <derek.foreman.samsung@gmail.com>2018-12-05 10:12:01 -0600
committerDerek Foreman <derek.foreman.samsung@gmail.com>2018-12-14 10:29:56 -0600
commit1139cde9a6917fb3f5285f777398272ad0cb6503 (patch)
tree171229b4bf947dc70c155b7bc3dad20b4b894381 /src/lib/ecore_evas/ecore_evas.c
parent70b16099a9febf6dcfd52391a8cd6d7e72eb6125 (diff)
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
Diffstat (limited to 'src/lib/ecore_evas/ecore_evas.c')
-rw-r--r--src/lib/ecore_evas/ecore_evas.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/ecore_evas/ecore_evas.c b/src/lib/ecore_evas/ecore_evas.c
index 109b5ef..14c3792 100644
--- a/src/lib/ecore_evas/ecore_evas.c
+++ b/src/lib/ecore_evas/ecore_evas.c
@@ -2793,6 +2793,10 @@ EAPI void
2793ecore_evas_shadow_geometry_set(Ecore_Evas *ee, int l, int r, int t, int b) 2793ecore_evas_shadow_geometry_set(Ecore_Evas *ee, int l, int r, int t, int b)
2794{ 2794{
2795 ECORE_EVAS_CHECK(ee); 2795 ECORE_EVAS_CHECK(ee);
2796 EINA_SAFETY_ON_TRUE_RETURN(l < 0);
2797 EINA_SAFETY_ON_TRUE_RETURN(r < 0);
2798 EINA_SAFETY_ON_TRUE_RETURN(t < 0);
2799 EINA_SAFETY_ON_TRUE_RETURN(b < 0);
2796 if ((ee->shadow.l == l) && (ee->shadow.r == r) && 2800 if ((ee->shadow.l == l) && (ee->shadow.r == r) &&
2797 (ee->shadow.t == t) && (ee->shadow.b == b)) return; 2801 (ee->shadow.t == t) && (ee->shadow.b == b)) return;
2798 ee->shadow.l = l; 2802 ee->shadow.l = l;