From 7d7a3156d308b66dcf41fc6e693208bc56c85f00 Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Tue, 23 Feb 2021 21:14:41 +0100 Subject: [PATCH] Fix skin rendering issue entering dirbrowse If the custom UI viewport (for displaying lists) changes size when entering dirbrowse, other viewports won't be correctly rendered and require a redraw. The following is a minimal test case for an example SBS where (the specified background color for) the viewport at the top of the screen won't appear after the user has entered the (root menu of the) file or database browser: %?if(%cs,=,1)<%VI(main)|%VI(other)> %V(0,0,-,21,-) %Vb(ededed) %Vi(main,0,22,-,-,-) %Vi(other,0,60,-,-,-) Change-Id: I1aeed0561f16531802d0fb8dc5fd18d65ac8f25a --- apps/tree.c | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/tree.c b/apps/tree.c index 196839f055..fc54b06f33 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -638,6 +638,7 @@ static int dirbrowse(void) return GO_TO_PREVIOUS; /* No files found for rockbox_browse() */ } + send_event(GUI_EVENT_ACTIONUPDATE, (void*)1); /* force a redraw */ gui_synclist_draw(&tree_lists); while(1) { bool restore = false;