From 680c6fcde1eabb45dd12c59718d708b2cda61f6a Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Tue, 21 Feb 2012 14:33:42 +0100 Subject: 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 --- apps/gui/bitmap/list-skinned.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/gui/bitmap') diff --git a/apps/gui/bitmap/list-skinned.c b/apps/gui/bitmap/list-skinned.c index 672a1e9..028374c 100644 --- a/apps/gui/bitmap/list-skinned.c +++ b/apps/gui/bitmap/list-skinned.c @@ -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; -- cgit v1.1