From a7d784b1d5912b68ca9d921961639fe948404811 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Wed, 4 Nov 2009 05:10:53 +0000 Subject: Fix viewport "UI area" to work based on what was agreed on last week in the mailing lists and IRC: * viewport_set_defaults() will always set the viewport to the intersection of the user setting and any sbs set user viewport * viewport_set_fullscreen() will always set the viewport to the full display, take care to disable the statusbars if you use this! This patch is from FS#10709 and contains code which will be removed once the current inbuilt statusbar is finally removed. This *may* break themes which dont use the %we or %wd token.. follow up commit to fix this coming... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23507 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/skin_engine/skin_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/gui/skin_engine') diff --git a/apps/gui/skin_engine/skin_display.c b/apps/gui/skin_engine/skin_display.c index 51f86e5686..460101a17b 100644 --- a/apps/gui/skin_engine/skin_display.c +++ b/apps/gui/skin_engine/skin_display.c @@ -108,7 +108,7 @@ void skin_statusbar_changed(struct gui_wps *skin) const int screen = display->screen_type; struct viewport *vp = &find_viewport(VP_DEFAULT_LABEL, data)->vp; - viewport_set_fullscreen(vp, screen); + viewport_set_defaults(vp, screen); if (data->wps_sb_tag) { /* fix up the default viewport */ -- cgit v1.2.3