summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-08-26 08:20:29 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-08-26 08:20:29 +0000
commit0dd3d6472ead619a126ccd7692a048c7568680d1 (patch)
treebcd2566c29f686d5b0fac18ef8c3086fabf86f04
parent90b28834b155522651e46ce2d8df6558851b2e68 (diff)
downloadrockbox-0dd3d6472ead619a126ccd7692a048c7568680d1.tar.gz
rockbox-0dd3d6472ead619a126ccd7692a048c7568680d1.zip
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
-rw-r--r--apps/status.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/status.c b/apps/status.c
index 923b549bf0..b980c4d3eb 100644
--- a/apps/status.c
+++ b/apps/status.c
@@ -152,7 +152,10 @@ void status_set_usb(bool b)
152 152
153void status_draw(bool force_redraw) 153void status_draw(bool force_redraw)
154{ 154{
155 struct status_info info; 155 /* This is static because we use memcmp() below to check for changes, and
156 the unused bytes (due to struct member alignment) might change if
157 the struct is allocated on the stack. */
158 static struct status_info info;
156 159
157#ifdef HAVE_LCD_BITMAP 160#ifdef HAVE_LCD_BITMAP
158 static struct status_info lastinfo; 161 static struct status_info lastinfo;