mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Viewports dont necessarily have children lines, so make sure there is one or it will crash
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28245 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
59f487205c
commit
39cf6dd2f3
1 changed files with 3 additions and 2 deletions
|
@ -700,6 +700,7 @@ void skin_render(struct gui_wps *gwps, unsigned refresh_mode)
|
|||
display->clear_viewport();
|
||||
}
|
||||
/* render */
|
||||
if (viewport->children_count)
|
||||
skin_render_viewport(viewport->children[0], gwps,
|
||||
skin_viewport, vp_refresh_mode);
|
||||
refresh_mode = old_refresh_mode;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue