sandbox: Add work-around for SDL2 display
authorSimon Glass <sjg@chromium.org>
Mon, 5 Jul 2021 22:32:46 +0000 (16:32 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 21 Jul 2021 16:27:34 +0000 (10:27 -0600)
commitfcb7e31082c8abf77f5efac5920093f3bcb5d8ca
tree87da3ff9cb425506e4c12c863a5b4285d4cce310
parentf178bebf551a43445ba8f1e1a4c1638eff8eb612
sandbox: Add work-around for SDL2 display

At present the display does not show on some machines, e.g. Ubunutu
20.04 but the reason is unknown. Add a work-around until this can be
determined.

Also include more error checking just in case.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/sdl.c