forked from len0rd/rockbox
Store listitem_viewport_cfg->label as skinoffset instead of raw pointer
This fixes the case where some blocks got relocated and the skin render code couldn't find the matching viewports any more. Change-Id: I4394444fb139ee5bc986f374dba82a104013e354 Reviewed-on: http://gerrit.rockbox.org/112 Reviewed-by: Frank Gevaerts <frank@gevaerts.be>
This commit is contained in:
parent
a16b65e47d
commit
680c6fcde1
3 changed files with 3 additions and 3 deletions
|
|
@ -165,7 +165,7 @@ bool skinlist_draw(struct screen *display, struct gui_synclist *list)
|
|||
wps.display = display;
|
||||
wps.data = listcfg[screen]->data;
|
||||
display_lines = skinlist_get_line_count(screen, list);
|
||||
label = listcfg[screen]->label;
|
||||
label = (char *)SKINOFFSETTOPTR(get_skin_buffer(wps.data), listcfg[screen]->label);
|
||||
display->set_viewport(parent);
|
||||
display->clear_viewport();
|
||||
current_item = list->selected_item;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue