mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 21:25:19 -05:00
Fix some drawing problems when displaying the WPS initially with sbs enabled. Move initial display of the wps to wps.c too. Should fix bug 3 of FS#10771.
Also change GUI_EVENT_REFRESH event handling so that the passed drawing function is always called, not only when sbs or custom ui vp are used. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23644 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d5af5c061c
commit
bdf2961ba3
4 changed files with 55 additions and 37 deletions
|
|
@ -58,26 +58,6 @@
|
|||
|
||||
static bool skin_redraw(struct gui_wps *gwps, unsigned refresh_mode);
|
||||
|
||||
|
||||
/* TODO: maybe move this whole function into wps.c instead ? */
|
||||
bool gui_wps_display(struct gui_wps *gwps)
|
||||
{
|
||||
struct screen *display = gwps->display;
|
||||
|
||||
/* Update the values in the first (default) viewport - in case the user
|
||||
has modified the statusbar or colour settings */
|
||||
#if LCD_DEPTH > 1
|
||||
if (display->depth > 1)
|
||||
{
|
||||
struct viewport *vp = &find_viewport(VP_DEFAULT_LABEL, gwps->data)->vp;
|
||||
vp->fg_pattern = display->get_foreground();
|
||||
vp->bg_pattern = display->get_background();
|
||||
}
|
||||
#endif
|
||||
display->backdrop_show(BACKDROP_SKIN_WPS);
|
||||
return skin_redraw(gwps, WPS_REFRESH_ALL);
|
||||
}
|
||||
|
||||
/* update a skinned screen, update_type is WPS_REFRESH_* values.
|
||||
* Usually it should only be WPS_REFRESH_NON_STATIC
|
||||
* A full update will be done if required (state.do_full_update == true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue