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
This commit is contained in:
Christian Soffke 2021-02-23 21:14:41 +01:00 committed by Solomon Peachy
parent 7d7850368e
commit 7d7a3156d3

View file

@ -638,6 +638,7 @@ static int dirbrowse(void)
return GO_TO_PREVIOUS; /* No files found for rockbox_browse() */ 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); gui_synclist_draw(&tree_lists);
while(1) { while(1) {
bool restore = false; bool restore = false;