mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 11:08:14 +02:00
ivi-shell: bugfix, check limitation of ivi_layout_surface opacity
Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp> Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
parent
4ff38741c7
commit
a86226c7c4
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue