From e385ee18ce501e26189d5a2a68d092104720df30 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Wed, 31 Dec 2008 05:59:26 +0000 Subject: 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 --- apps/misc.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps/misc.c') 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 @@ #endif #else #include "sprintf.h" +#include "appevents.h" #include "lang.h" #include "string.h" #include "dir.h" @@ -60,6 +61,7 @@ #include "sound.h" #include "playlist.h" #include "yesno.h" +#include "viewport.h" #ifdef IPOD_ACCESSORY_PROTOCOL #include "iap.h" @@ -904,6 +906,9 @@ long default_event_handler_ex(long event, void (*callback)(void *), void *parame { switch(event) { + case SYS_FOURHERTZ: + send_event(GUI_EVENT_FOURHERTZ, NULL); + break; case SYS_BATTERY_UPDATE: if(global_settings.talk_battery_level) { -- cgit v1.2.3