diff --git a/ivi-shell/ivi-layout.c b/ivi-shell/ivi-layout.c index 4aed4c87..50ce22fd 100644 --- a/ivi-shell/ivi-layout.c +++ b/ivi-shell/ivi-layout.c @@ -2209,7 +2209,9 @@ ivi_layout_surface_set_opacity(struct ivi_layout_surface *ivisurf, { struct ivi_layout_surface_properties *prop = NULL; - if (ivisurf == NULL) { + if (ivisurf == NULL || + opacity < wl_fixed_from_double(0.0) || + wl_fixed_from_double(1.0) < opacity) { weston_log("ivi_layout_surface_set_opacity: invalid argument\n"); return IVI_FAILED; }