mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
Don't trigger a skin refresh from skinlist_draw()
Thiskin refresh trigger apparently causes the skin and list to continuously refresh, with the side effect that buttons no longer work. Change-Id: I4439406176890ac46a3f217bfff43c6935a03a7c Reviewed-on: http://gerrit.rockbox.org/240 Reviewed-by: Jonathan Gordon <rockbox@jdgordon.info>
This commit is contained in:
parent
789452ac44
commit
053722a573
1 changed files with 1 additions and 4 deletions
|
@ -177,6 +177,7 @@ bool skinlist_draw(struct screen *display, struct gui_synclist *list)
|
||||||
struct gui_wps wps;
|
struct gui_wps wps;
|
||||||
if (!skinlist_is_configured(screen, list))
|
if (!skinlist_is_configured(screen, list))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
current_list = list;
|
current_list = list;
|
||||||
wps.display = display;
|
wps.display = display;
|
||||||
wps.data = listcfg[screen]->data;
|
wps.data = listcfg[screen]->data;
|
||||||
|
@ -265,10 +266,6 @@ bool skinlist_draw(struct screen *display, struct gui_synclist *list)
|
||||||
display->set_viewport(parent);
|
display->set_viewport(parent);
|
||||||
display->update_viewport();
|
display->update_viewport();
|
||||||
current_drawing_line = list->selected_item;
|
current_drawing_line = list->selected_item;
|
||||||
#if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP)
|
|
||||||
/* Abuse the callback to force the sbs to update */
|
|
||||||
send_event(LCD_EVENT_ACTIVATION, NULL);
|
|
||||||
#endif
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue