ivi-shell: remove one indent level from update_prop()

There is no logic update.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
dev
Nobuhiko Tanibata 10 years ago committed by Pekka Paalanen
parent 8c7287f5ba
commit 4c1dbf7213
  1. 39
      ivi-shell/ivi-layout.c

@ -756,30 +756,33 @@ static void
update_prop(struct ivi_layout_layer *ivilayer, update_prop(struct ivi_layout_layer *ivilayer,
struct ivi_layout_surface *ivisurf) struct ivi_layout_surface *ivisurf)
{ {
if (ivilayer->event_mask | ivisurf->event_mask) { struct weston_view *tmpview;
struct weston_view *tmpview;
update_opacity(ivilayer, ivisurf);
update_layer_orientation(ivilayer, ivisurf);
update_layer_position(ivilayer, ivisurf);
update_surface_position(ivisurf);
update_surface_orientation(ivilayer, ivisurf);
update_scale(ivilayer, ivisurf);
ivisurf->update_count++; if (!ivilayer->event_mask && !ivisurf->event_mask) {
return;
}
wl_list_for_each(tmpview, &ivisurf->surface->views, surface_link) { update_opacity(ivilayer, ivisurf);
if (tmpview != NULL) { update_layer_orientation(ivilayer, ivisurf);
break; update_layer_position(ivilayer, ivisurf);
} update_surface_position(ivisurf);
} update_surface_orientation(ivilayer, ivisurf);
update_scale(ivilayer, ivisurf);
ivisurf->update_count++;
wl_list_for_each(tmpview, &ivisurf->surface->views, surface_link) {
if (tmpview != NULL) { if (tmpview != NULL) {
weston_view_geometry_dirty(tmpview); break;
} }
}
if (ivisurf->surface != NULL) { if (tmpview != NULL) {
weston_surface_damage(ivisurf->surface); weston_view_geometry_dirty(tmpview);
} }
if (ivisurf->surface != NULL) {
weston_surface_damage(ivisurf->surface);
} }
} }

Loading…
Cancel
Save