diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2009-01-05 09:59:11 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2009-01-05 09:59:11 +0000 |
commit | 8b9fdb540c9bf10c0939cb4a529688bd3e79ff9c (patch) | |
tree | a99ace107474dd7adaf39055d4c851a294c366b5 /apps/action.c | |
parent | e74cc6d9da7c7eab96cb06147903c75c1f9c06c7 (diff) | |
download | rockbox-8b9fdb540c9bf10c0939cb4a529688bd3e79ff9c.tar.gz rockbox-8b9fdb540c9bf10c0939cb4a529688bd3e79ff9c.zip |
redo how the statusbar updates are done. send the EVENT_GUI_ACTIONUPDATE event every time get_action() is called. The event wont be as realiable (timewise) as before, but seems to work better
This also fixes FS#9761.
Also set the lcd font back to the ui font from the debug screens which use sysfont
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19681 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/action.c')
-rw-r--r-- | apps/action.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/action.c b/apps/action.c index c2a6e47ebe..d98bf13cf3 100644 --- a/apps/action.c +++ b/apps/action.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include "config.h" | 25 | #include "config.h" |
26 | #include "lang.h" | 26 | #include "lang.h" |
27 | 27 | ||
28 | #include "appevents.h" | ||
28 | #include "button.h" | 29 | #include "button.h" |
29 | #include "action.h" | 30 | #include "action.h" |
30 | #include "kernel.h" | 31 | #include "kernel.h" |
@@ -104,10 +105,6 @@ static inline int get_next_context(const struct button_mapping *items, int i) | |||
104 | Timeout can be TIMEOUT_NOBLOCK to return immediatly | 105 | Timeout can be TIMEOUT_NOBLOCK to return immediatly |
105 | TIMEOUT_BLOCK to wait for a button press | 106 | TIMEOUT_BLOCK to wait for a button press |
106 | Any number >0 to wait that many ticks for a press | 107 | Any number >0 to wait that many ticks for a press |
107 | |||
108 | This function will likely return SYS_FOURHERTZ which should be passed to the | ||
109 | default_event_handler(). If this doesnt happen parts of the GUI may not be | ||
110 | redrawn correctly | ||
111 | */ | 108 | */ |
112 | static int get_action_worker(int context, int timeout, | 109 | static int get_action_worker(int context, int timeout, |
113 | const struct button_mapping* (*get_context_map)(int) ) | 110 | const struct button_mapping* (*get_context_map)(int) ) |
@@ -117,6 +114,9 @@ static int get_action_worker(int context, int timeout, | |||
117 | int i=0; | 114 | int i=0; |
118 | int ret = ACTION_UNKNOWN; | 115 | int ret = ACTION_UNKNOWN; |
119 | static int last_context = CONTEXT_STD; | 116 | static int last_context = CONTEXT_STD; |
117 | |||
118 | |||
119 | send_event(GUI_EVENT_ACTIONUPDATE, NULL); | ||
120 | 120 | ||
121 | if (timeout == TIMEOUT_NOBLOCK) | 121 | if (timeout == TIMEOUT_NOBLOCK) |
122 | button = button_get(false); | 122 | button = button_get(false); |