aboutsummaryrefslogtreecommitdiff
path: root/arch/sandbox/include/asm/sdl.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-11-19 13:23:46 -0700
committerAnatolij Gustschin <agust@denx.de>2021-12-26 23:02:19 +0100
commit250e735c692bd12ea86dcea5de2cd1cfe225a0a4 (patch)
treebd7e5b14f1706db1a7e88c2edc46d4ce16b084cd /arch/sandbox/include/asm/sdl.h
parent0fe5e9481e8ad39393523a23ebb090a249da18b7 (diff)
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>
Diffstat (limited to 'arch/sandbox/include/asm/sdl.h')
-rw-r--r--arch/sandbox/include/asm/sdl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/sandbox/include/asm/sdl.h b/arch/sandbox/include/asm/sdl.h
index 47fc4889d2..25dbdb5944 100644
--- a/arch/sandbox/include/asm/sdl.h
+++ b/arch/sandbox/include/asm/sdl.h
@@ -26,6 +26,13 @@ int sandbox_sdl_init_display(int width, int height, int log2_bpp,
bool double_size);
/**
+ * sandbox_sdl_remove_display() - Remove the SDL screen
+ *
+ * @return 0 if OK, -ENOENT if the SDL had not been inited.
+ */
+int sandbox_sdl_remove_display(void);
+
+/**
* sandbox_sdl_sync() - Sync current U-Boot LCD frame buffer to SDL
*
* This must be called periodically to update the screen for SDL so that the