video: sandbox: Avoid duplicate display windows
authorSimon Glass <sjg@chromium.org>
Fri, 19 Nov 2021 20:23:46 +0000 (13:23 -0700)
committerAnatolij Gustschin <agust@denx.de>
Sun, 26 Dec 2021 22:02:19 +0000 (23:02 +0100)
commit250e735c692bd12ea86dcea5de2cd1cfe225a0a4
treebd7e5b14f1706db1a7e88c2edc46d4ce16b084cd
parent0fe5e9481e8ad39393523a23ebb090a249da18b7
video: sandbox: Avoid duplicate display windows

When unit tests are run they currently create a new window. Update the
code so that the old one is removed first. This avoids the confusion as to
which one is active.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/sdl.c
arch/sandbox/include/asm/sdl.h
drivers/video/sandbox_sdl.c