summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2021-02-23 21:14:41 +0100
committerSolomon Peachy <pizza@shaftnet.org>2021-02-27 14:41:54 +0000
commit7d7a3156d308b66dcf41fc6e693208bc56c85f00 (patch)
treeb3227286d68806449ca233d651c9c149f67707f5 /apps/tree.c
parent7d7850368ede94290ef28c2a4abc684a7f6ab467 (diff)
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
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c1
1 files changed, 1 insertions, 0 deletions
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;