1
0
Fork 0
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:
Linus Nielsen Feltzing 2005-08-26 08:20:29 +00:00
parent 90b28834b1
commit 0dd3d6472e

View file

@ -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;