hmi-controller: don't add surface to layer in mode_random_replace()

There is no need to call layer_add_surface() in mode_random_replace()
because the surface has already been added to the layer. Rather, calling
layer_add_surface() has the issue that the child surface is displayed
below the parent surface.

Signed-off-by: Tomohito Esaki <etom@igel.co.jp>
This commit is contained in:
Tomohito Esaki 2022-07-06 15:54:33 +09:00
parent 9cdb7c7450
commit 036a76e3eb

View file

@ -438,8 +438,6 @@ mode_random_replace(struct hmi_controller *hmi_ctrl,
surface_y,
surface_width,
surface_height);
hmi_ctrl->interface->layer_add_surface(layers[layer_idx]->ivilayer, ivisurf);
}
free(layers);