mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 21:25:19 -05:00
Fix FS#8998 - statusbar in plugin menus was sometimes a different colour.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19254 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
fc9dc0a54a
commit
8fb25b7c3e
1 changed files with 8 additions and 0 deletions
|
|
@ -26,6 +26,7 @@
|
||||||
#include "sprintf.h"
|
#include "sprintf.h"
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
|
#include "viewport.h"
|
||||||
#if CONFIG_CODEC == SWCODEC
|
#if CONFIG_CODEC == SWCODEC
|
||||||
#include "metadata.h"
|
#include "metadata.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -172,6 +173,12 @@ static void gui_statusbar_init(struct gui_statusbar * bar)
|
||||||
void gui_statusbar_draw(struct gui_statusbar * bar, bool force_redraw)
|
void gui_statusbar_draw(struct gui_statusbar * bar, bool force_redraw)
|
||||||
{
|
{
|
||||||
struct screen * display = bar->display;
|
struct screen * display = bar->display;
|
||||||
|
struct viewport vp;
|
||||||
|
viewport_set_defaults(&vp, display->screen_type);
|
||||||
|
vp.height = STATUSBAR_HEIGHT;
|
||||||
|
vp.x = STATUSBAR_X_POS;
|
||||||
|
vp.y = STATUSBAR_Y_POS;
|
||||||
|
display->set_viewport(&vp);
|
||||||
|
|
||||||
#ifdef HAVE_LCD_CHARCELLS
|
#ifdef HAVE_LCD_CHARCELLS
|
||||||
int val;
|
int val;
|
||||||
|
|
@ -370,6 +377,7 @@ void gui_statusbar_draw(struct gui_statusbar * bar, bool force_redraw)
|
||||||
display->icon(ICON_PARAM, param);
|
display->icon(ICON_PARAM, param);
|
||||||
display->icon(ICON_USB, usb);
|
display->icon(ICON_USB, usb);
|
||||||
#endif /* HAVE_LCD_CHARCELLS */
|
#endif /* HAVE_LCD_CHARCELLS */
|
||||||
|
display->set_viewport(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_LCD_BITMAP
|
#ifdef HAVE_LCD_BITMAP
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue