1
0
Fork 0
forked from len0rd/rockbox

Fix viewport_set_defaults giving the wrong dimensions if the ui vp is overridden (as done in plugins atm), and notify other code if the ui vp was overridden.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22657 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2009-09-07 21:52:12 +00:00
parent 8ad60026fe
commit 32340186c7

View file

@ -140,7 +140,7 @@ void viewport_set_defaults(struct viewport *vp, enum screen_type screen)
{
#ifdef HAVE_LCD_BITMAP
if (ui_vp_info.active[screen])
*vp = custom_vp[screen];
*vp = ui_vp_info.vp[screen];
else
#endif
viewport_set_fullscreen(vp, screen);
@ -280,6 +280,9 @@ void viewport_set_current_vp(struct viewport* vp)
ui_vp_info.vp = vp;
else
ui_vp_info.vp = custom_vp;
/* must be done after the assignment above or event handler get old vps */
send_event(GUI_EVENT_THEME_CHANGED, NULL);
}
struct viewport* viewport_get_current_vp(void)