summaryrefslogtreecommitdiffstats
path: root/apps/action.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2009-01-05 09:59:11 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2009-01-05 09:59:11 +0000
commit8b9fdb540c9bf10c0939cb4a529688bd3e79ff9c (patch)
treea99ace107474dd7adaf39055d4c851a294c366b5 /apps/action.c
parente74cc6d9da7c7eab96cb06147903c75c1f9c06c7 (diff)
downloadrockbox-8b9fdb540c9bf10c0939cb4a529688bd3e79ff9c.tar.gz
rockbox-8b9fdb540c9bf10c0939cb4a529688bd3e79ff9c.tar.bz2
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.c8
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 @@
#include "config.h"
#include "lang.h"
+#include "appevents.h"
#include "button.h"
#include "action.h"
#include "kernel.h"
@@ -104,10 +105,6 @@ static inline int get_next_context(const struct button_mapping *items, int i)
Timeout can be TIMEOUT_NOBLOCK to return immediatly
TIMEOUT_BLOCK to wait for a button press
Any number >0 to wait that many ticks for a press
-
- This function will likely return SYS_FOURHERTZ which should be passed to the
- default_event_handler(). If this doesnt happen parts of the GUI may not be
- redrawn correctly
*/
static int get_action_worker(int context, int timeout,
const struct button_mapping* (*get_context_map)(int) )
@@ -117,6 +114,9 @@ static int get_action_worker(int context, int timeout,
int i=0;
int ret = ACTION_UNKNOWN;
static int last_context = CONTEXT_STD;
+
+
+ send_event(GUI_EVENT_ACTIONUPDATE, NULL);
if (timeout == TIMEOUT_NOBLOCK)
button = button_get(false);