forked from len0rd/rockbox
Bug fix suggested by Antonius Hellman, the status could be redrawn far too often.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7402 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
90b28834b1
commit
0dd3d6472e
1 changed files with 4 additions and 1 deletions
|
|
@ -152,7 +152,10 @@ void status_set_usb(bool b)
|
||||||
|
|
||||||
void status_draw(bool force_redraw)
|
void status_draw(bool force_redraw)
|
||||||
{
|
{
|
||||||
struct status_info info;
|
/* This is static because we use memcmp() below to check for changes, and
|
||||||
|
the unused bytes (due to struct member alignment) might change if
|
||||||
|
the struct is allocated on the stack. */
|
||||||
|
static struct status_info info;
|
||||||
|
|
||||||
#ifdef HAVE_LCD_BITMAP
|
#ifdef HAVE_LCD_BITMAP
|
||||||
static struct status_info lastinfo;
|
static struct status_info lastinfo;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue