From 2f1212c0acd739f64c9d687f5ffaf451f2261f1a Mon Sep 17 00:00:00 2001 From: Martin Fouilleul Date: Fri, 15 Sep 2023 12:46:27 +0200 Subject: [PATCH] quick workaround for background showing on resize: clear to current theme's bg0 color --- samples/ui/src/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/samples/ui/src/main.c b/samples/ui/src/main.c index a803c5a..94f1589 100644 --- a/samples/ui/src/main.c +++ b/samples/ui/src/main.c @@ -804,6 +804,10 @@ ORCA_EXPORT void oc_on_frame_refresh(void) } oc_canvas_select(canvas); oc_surface_select(surface); + + oc_set_color(ui.theme->bg0); + oc_clear(); + oc_ui_draw(); oc_render(canvas); oc_surface_present(surface);