From 036a76e3ebe949e47259af2c57524e9a10450556 Mon Sep 17 00:00:00 2001 From: Tomohito Esaki Date: Wed, 6 Jul 2022 15:54:33 +0900 Subject: [PATCH] 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 --- ivi-shell/hmi-controller.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/ivi-shell/hmi-controller.c b/ivi-shell/hmi-controller.c index 8ae2230b..509ea73c 100644 --- a/ivi-shell/hmi-controller.c +++ b/ivi-shell/hmi-controller.c @@ -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);