forked from len0rd/rockbox
Fix the build errors
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30590 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
aa0f4a4bbe
commit
b71c66ec56
4 changed files with 7 additions and 8 deletions
|
|
@ -336,7 +336,9 @@ static void init_tagcache(void)
|
|||
|
||||
static void init(void)
|
||||
{
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
int i;
|
||||
#endif
|
||||
system_init();
|
||||
core_allocator_init();
|
||||
kernel_init();
|
||||
|
|
|
|||
|
|
@ -69,6 +69,7 @@ static int screen_helper_getnblines(void)
|
|||
|
||||
void screen_helper_setfont(int font)
|
||||
{
|
||||
(int)font;
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
if (font == FONT_UI)
|
||||
font = global_status.font_id[SCREEN_MAIN];
|
||||
|
|
|
|||
|
|
@ -1,9 +1,6 @@
|
|||
../../apps/gui/skin_engine/wps_debug.c
|
||||
../../apps/gui/skin_engine/skin_parser.c
|
||||
../../apps/gui/skin_engine/skin_backdrops.c
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
../../apps/gui/skin_engine/skin_fonts.c
|
||||
#endif
|
||||
../../apps/gui/viewport.c
|
||||
../../apps/misc.c
|
||||
../../firmware/common/strlcpy.c
|
||||
|
|
|
|||
|
|
@ -149,6 +149,8 @@ struct user_settings global_settings = {
|
|||
#endif
|
||||
};
|
||||
|
||||
struct system_status global_status;
|
||||
|
||||
int getwidth(void) { return LCD_WIDTH; }
|
||||
int getheight(void) { return LCD_HEIGHT; }
|
||||
#ifdef HAVE_REMOTE_LCD
|
||||
|
|
@ -218,9 +220,9 @@ bool radio_hardware_present(void)
|
|||
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
static int loaded_fonts = 0;
|
||||
int font_load(struct font* pf, const char *path)
|
||||
int font_load(const char *path)
|
||||
{
|
||||
int id = SYSTEMFONTCOUNT + loaded_fonts;
|
||||
int id = 2 + loaded_fonts;
|
||||
loaded_fonts++;
|
||||
return id;
|
||||
}
|
||||
|
|
@ -273,9 +275,6 @@ int main(int argc, char **argv)
|
|||
}
|
||||
|
||||
skin_buffer_init(buffer, SKIN_BUFFER_SIZE);
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
skin_font_init();
|
||||
#endif
|
||||
|
||||
/* Go through every skin that was thrown at us, error out at the first
|
||||
* flawed wps */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue