From cc65afac0a04f58563e8f58e031dad54712039c6 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Wed, 4 Nov 2009 22:55:02 +0000 Subject: Get font and colors from UI viewport before intersecting, instead of leaving them empty. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23526 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/viewport.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/gui/viewport.c b/apps/gui/viewport.c index b40f244ab2..b14cbf6649 100644 --- a/apps/gui/viewport.c +++ b/apps/gui/viewport.c @@ -384,7 +384,10 @@ void viewport_set_defaults(struct viewport *vp, a->x + a->width > b->x && a->y < b->y + b->height && a->y + a->height > b->y) - { /* interesect so that the ui viewport is cropped so that it + { + /* copy from ui vp first (for other field),fix coordinates after */ + *vp = *user_setting; + /* interesect so that the ui viewport is cropped so that it * is completely within the info vp */ vp->x = MAX(a->x, b->x); vp->y = MAX(a->y, b->y); -- cgit v1.2.3