diff options
author | Thomas Martitz <kugel@rockbox.org> | 2009-03-17 01:39:20 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2009-03-17 01:39:20 +0000 |
commit | 680990912c98b6414401c614839fb061e8d9fcee (patch) | |
tree | 8943241096cdaabc9056abc600bb49a7a8352026 /apps/gui/viewport.c | |
parent | 788ace2ec672f0cad5d1537342456832117c16bb (diff) | |
download | rockbox-680990912c98b6414401c614839fb061e8d9fcee.tar.gz rockbox-680990912c98b6414401c614839fb061e8d9fcee.zip |
Some internal rework of the wps:
a) Put duplicated code together. The restoration code into the existing restoration part of the main loop, the exiting code into a separate function
b) Let the STATUSBAR_CHANGED event handle fixing the statusbar
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20329 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/viewport.c')
-rw-r--r-- | apps/gui/viewport.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/gui/viewport.c b/apps/gui/viewport.c index 480c37a044..bc1ce8e9d3 100644 --- a/apps/gui/viewport.c +++ b/apps/gui/viewport.c | |||
@@ -34,6 +34,7 @@ | |||
34 | #include "statusbar.h" | 34 | #include "statusbar.h" |
35 | #include "screen_access.h" | 35 | #include "screen_access.h" |
36 | #include "appevents.h" | 36 | #include "appevents.h" |
37 | #include "gwps.h" | ||
37 | 38 | ||
38 | static int statusbar_enabled = 0; | 39 | static int statusbar_enabled = 0; |
39 | 40 | ||
@@ -123,6 +124,8 @@ void viewportmanager_draw_statusbars(void* data) | |||
123 | { | 124 | { |
124 | (void)data; | 125 | (void)data; |
125 | int i; | 126 | int i; |
127 | |||
128 | gwps_fix_statusbars(); | ||
126 | FOR_NB_SCREENS(i) | 129 | FOR_NB_SCREENS(i) |
127 | { | 130 | { |
128 | if (showing_bars(i)) | 131 | if (showing_bars(i)) |