Fix screens not redrawing the statusbar when they should.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20126 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2009-02-27 08:24:39 +00:00
parent 353ebd0967
commit 79967c7a49

View file

@ -35,7 +35,7 @@
#include "screen_access.h"
#include "appevents.h"
static int statusbar_enabled = VP_SB_ALLSCREENS;
static int statusbar_enabled = 0;
int viewport_get_nb_lines(struct viewport *vp)
{
@ -101,6 +101,7 @@ void viewport_set_defaults(struct viewport *vp, enum screen_type screen)
int viewportmanager_set_statusbar(int enabled)
{
int old = statusbar_enabled;
statusbar_enabled = enabled;
if (enabled)
{
int i;
@ -115,7 +116,6 @@ int viewportmanager_set_statusbar(int enabled)
{
remove_event(GUI_EVENT_ACTIONUPDATE, viewportmanager_draw_statusbars);
}
statusbar_enabled = enabled;
return old;
}