From 5931c2a82aa745c6726adf64a897d8eb64f7ea3b Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Sun, 5 Jul 2009 18:30:00 +0000 Subject: [PATCH] fix yellow git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21668 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/viewport.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/gui/viewport.c b/apps/gui/viewport.c index 67f63e349b..81baf1eab6 100644 --- a/apps/gui/viewport.c +++ b/apps/gui/viewport.c @@ -49,10 +49,10 @@ int viewport_get_nb_lines(struct viewport *vp) static bool showing_bars(enum screen_type screen) { - bool ignore = statusbar_enabled & VP_SB_IGNORE_SETTING(screen); if (statusbar_enabled & VP_SB_ONSCREEN(screen)) { #ifdef HAVE_LCD_BITMAP + bool ignore = statusbar_enabled & VP_SB_IGNORE_SETTING(screen); #ifdef HAVE_REMOTE_LCD if (screen == SCREEN_REMOTE) return global_settings.remote_statusbar || ignore; @@ -67,7 +67,9 @@ static bool showing_bars(enum screen_type screen) void viewport_set_defaults(struct viewport *vp, enum screen_type screen) { +#ifdef HAVE_LCD_BITMAP bool bar_at_top = true; +#endif vp->x = 0; vp->width = screens[screen].lcdwidth;