Fix player red and remove an obsolete function call.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23056 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2009-10-09 19:17:22 +00:00
parent dcdc2b93ae
commit 8e3e5e7a59
4 changed files with 5 additions and 8 deletions

View file

@ -60,9 +60,9 @@
#endif
static int statusbar_enabled = 0;
static void viewport_rtl_handler(struct viewport *vp);
#ifdef HAVE_LCD_BITMAP
static void viewport_rtl_handler(struct viewport *vp);
static struct {
struct viewport* vp;

View file

@ -76,8 +76,6 @@ void viewportmanager_init(void);
int viewportmanager_get_statusbar(void);
int viewportmanager_set_statusbar(int enabled);
/* call this when a theme changed */
void viewportmanager_theme_changed(int);
/*
* Initializes the given viewport with maximum dimensions minus status- and
@ -87,6 +85,9 @@ void viewport_set_fullscreen(struct viewport *vp, enum screen_type screen);
#ifdef HAVE_LCD_BITMAP
/* call this when a theme changed */
void viewportmanager_theme_changed(int);
/*
* Returns a pointer to the current viewport
* - That could be the UI vp, or a viewport passed to do_menu() or the like
@ -111,6 +112,7 @@ bool viewport_point_within_vp(const struct viewport *vp, int x, int y);
#else /* HAVE_LCD_CHARCELL */
#define viewport_set_current_vp(a)
#define viewport_get_current_vp() NULL
#define viewportmanager_theme_changed(a)
#endif
#endif /* __PCTOOL__ */

View file

@ -116,9 +116,6 @@ int lang_load(const char *filename)
else
{
lang_options = lang_header[3];
#ifdef HAVE_LCD_BITMAP
viewportmanager_theme_changed(THEME_UI_VIEWPORT);
#endif
}
return retcode;
}

View file

@ -997,9 +997,7 @@ void settings_apply(bool read_disk)
#if defined(HAVE_RECORDING) && CONFIG_CODEC == SWCODEC
enc_global_settings_apply();
#endif
#ifdef HAVE_LCD_BITMAP
viewportmanager_theme_changed(THEME_ALL);
#endif
}