Revert r24958. It didn't fix anything (in fact, the problem described didn't exist). Increase MAXFONTS by 1 to allow for remote screen targets to load fonts 2-9.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24983 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f7533cceaa
commit
3b52937c8a
2 changed files with 3 additions and 2 deletions
|
@ -935,10 +935,10 @@ static int parse_viewport(const char *wps_bufptr,
|
|||
else
|
||||
vp->flags &= ~VP_FLAG_ALIGN_RIGHT; /* ignore right-to-left languages */
|
||||
|
||||
#ifdef HAVE_REMOTE_LCD
|
||||
/* increment because font==2 and FONT_UI_REMOTE is ambiguous */
|
||||
if (vp->font > FONT_UI)
|
||||
vp->font++;
|
||||
#ifdef HAVE_REMOTE_LCD
|
||||
if (vp->font == FONT_UI && curr_screen == SCREEN_REMOTE)
|
||||
vp->font = FONT_UI_REMOTE;
|
||||
#endif
|
||||
|
|
|
@ -55,7 +55,8 @@ enum {
|
|||
FONT_FIRSTUSERFONT = 2
|
||||
};
|
||||
|
||||
#define MAXFONTS 10
|
||||
/* SYSFONT, FONT_UI, FONT_UI_REMOTE + 8 fonts in skins */
|
||||
#define MAXFONTS 11
|
||||
|
||||
/*
|
||||
* .fnt loadable font file format definition
|
||||
|
|
Loading…
Reference in a new issue