summaryrefslogtreecommitdiff
path: root/apps/misc.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2008-12-31 05:59:26 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2008-12-31 05:59:26 +0000
commite385ee18ce501e26189d5a2a68d092104720df30 (patch)
tree5219051887835d9750d80f71d9849ceb3aa65d82 /apps/misc.c
parent54919ae9176bd9cbffc8412f0c831f471b8ac4d5 (diff)
downloadrockbox-e385ee18ce501e26189d5a2a68d092104720df30.tar.gz
rockbox-e385ee18ce501e26189d5a2a68d092104720df30.zip
Decouple the statusbar drawing from the rest of the screen drawing. it is not drawn roughly 4x per second automatically.
viewport_Set_defaults() will setup the given viewport with the correct "full screen" dimensions (so start at 0,0 if statusbars are disabled or 0,8 if they are enabled.) All screens should keep the statusbar enabled, but if you really want to ignore the user setting you can disbaled it with viewportmanager_set_statusbar(false). This commit also includes some menu/list viewport cleanups from kugel in FS#9603 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19622 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/misc.c')
-rw-r--r--apps/misc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/misc.c b/apps/misc.c
index 8b73411549..894b0c2cc4 100644
--- a/apps/misc.c
+++ b/apps/misc.c
@@ -33,6 +33,7 @@
33#endif 33#endif
34#else 34#else
35#include "sprintf.h" 35#include "sprintf.h"
36#include "appevents.h"
36#include "lang.h" 37#include "lang.h"
37#include "string.h" 38#include "string.h"
38#include "dir.h" 39#include "dir.h"
@@ -60,6 +61,7 @@
60#include "sound.h" 61#include "sound.h"
61#include "playlist.h" 62#include "playlist.h"
62#include "yesno.h" 63#include "yesno.h"
64#include "viewport.h"
63 65
64#ifdef IPOD_ACCESSORY_PROTOCOL 66#ifdef IPOD_ACCESSORY_PROTOCOL
65#include "iap.h" 67#include "iap.h"
@@ -904,6 +906,9 @@ long default_event_handler_ex(long event, void (*callback)(void *), void *parame
904{ 906{
905 switch(event) 907 switch(event)
906 { 908 {
909 case SYS_FOURHERTZ:
910 send_event(GUI_EVENT_FOURHERTZ, NULL);
911 break;
907 case SYS_BATTERY_UPDATE: 912 case SYS_BATTERY_UPDATE:
908 if(global_settings.talk_battery_level) 913 if(global_settings.talk_battery_level)
909 { 914 {