summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-02-21 19:10:09 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-02-21 19:10:09 +0000
commitf85103e8f2fe19b8e4495bc0317dd853f6aca23a (patch)
tree5baa7ffc4bf27c260b25c8bd0f18ad2177a936f1
parentc5bb1925ebbeff7a49a938f9f00ddc66b1d6ca5d (diff)
downloadrockbox-f85103e8f2fe19b8e4495bc0317dd853f6aca23a.tar.gz
rockbox-f85103e8f2fe19b8e4495bc0317dd853f6aca23a.zip
remote multifont fixes. it shoud be working again (blame AlexP! he made me break it last week!)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24812 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/gui/skin_engine/skin_parser.c5
-rw-r--r--apps/gui/statusbar-skinned.c4
-rw-r--r--apps/gui/viewport.c6
-rw-r--r--firmware/font.c3
4 files changed, 11 insertions, 7 deletions
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c
index 4e0cc42e18..414da44581 100644
--- a/apps/gui/skin_engine/skin_parser.c
+++ b/apps/gui/skin_engine/skin_parser.c
@@ -930,6 +930,11 @@ static int parse_viewport(const char *wps_bufptr,
930 else 930 else
931 vp->flags &= ~VP_FLAG_ALIGN_RIGHT; /* ignore right-to-left languages */ 931 vp->flags &= ~VP_FLAG_ALIGN_RIGHT; /* ignore right-to-left languages */
932 932
933#ifdef HAVE_REMOTE_LCD
934 if (vp->font == FONT_UI && curr_screen == SCREEN_REMOTE)
935 vp->font = FONT_UI_REMOTE;
936 else
937#endif
933 if (vp->font > FONT_UI) 938 if (vp->font > FONT_UI)
934 vp->font = font_ids[vp->font - FONT_UI]; 939 vp->font = font_ids[vp->font - FONT_UI];
935 940
diff --git a/apps/gui/statusbar-skinned.c b/apps/gui/statusbar-skinned.c
index fac6756aec..f5458fb252 100644
--- a/apps/gui/statusbar-skinned.c
+++ b/apps/gui/statusbar-skinned.c
@@ -184,8 +184,8 @@ void sb_create_from_settings(enum screen_type screen)
184 default: 184 default:
185 height = screens[screen].lcdheight; 185 height = screens[screen].lcdheight;
186 } 186 }
187 len = snprintf(ptr, remaining, "%%ax%%Vi|0|%d|-|%d|%d|-|-|\n", 187 len = snprintf(ptr, remaining, "%%ax%%Vi|0|%d|-|%d|1|-|-|\n",
188 y, height, FONT_UI + screen); 188 y, height);
189 } 189 }
190 sb_skin_data_load(screen, buf, false); 190 sb_skin_data_load(screen, buf, false);
191} 191}
diff --git a/apps/gui/viewport.c b/apps/gui/viewport.c
index ee233b9c46..142be1c8ac 100644
--- a/apps/gui/viewport.c
+++ b/apps/gui/viewport.c
@@ -457,11 +457,7 @@ const char* viewport_parse_viewport(struct viewport *vp,
457 * font 1 is *always* the UI font for the current screen 457 * font 1 is *always* the UI font for the current screen
458 * 2 is always the first extra font */ 458 * 2 is always the first extra font */
459 if (!LIST_VALUE_PARSED(set, PL_FONT)) 459 if (!LIST_VALUE_PARSED(set, PL_FONT))
460 vp->font = FONT_UI + screen; 460 vp->font = FONT_UI;
461#ifdef HAVE_REMOTE_LCD
462 else if (vp->font == FONT_UI && screen == SCREEN_REMOTE)
463 vp->font = FONT_UI_REMOTE;
464#endif
465 461
466 /* Set the defaults for fields not user-specified */ 462 /* Set the defaults for fields not user-specified */
467 vp->drawmode = DRMODE_SOLID; 463 vp->drawmode = DRMODE_SOLID;
diff --git a/firmware/font.c b/firmware/font.c
index 52c6ffae6a..534fa922fd 100644
--- a/firmware/font.c
+++ b/firmware/font.c
@@ -98,6 +98,9 @@ void font_init(void)
98 while (i<MAXFONTS) 98 while (i<MAXFONTS)
99 sysfonts[i++] = NULL; 99 sysfonts[i++] = NULL;
100 font_reset(NULL); 100 font_reset(NULL);
101#ifdef HAVE_REMOTE_LCD
102 font_reset(&remote_font_ui);
103#endif
101} 104}
102 105
103/* Check if we have x bytes left in the file buffer */ 106/* Check if we have x bytes left in the file buffer */