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 --- firmware/drivers/button.c | 1 - firmware/export/kernel.h | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware') diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c index 9dfebf6e38..6c0e2b940f 100644 --- a/firmware/drivers/button.c +++ b/firmware/drivers/button.c @@ -368,7 +368,6 @@ long button_get_w_tmo(int ticks) ev.id = BUTTON_NONE; else button_data = ev.data; - return ev.id; } diff --git a/firmware/export/kernel.h b/firmware/export/kernel.h index 29cf8f2eb9..5cebb29847 100644 --- a/firmware/export/kernel.h +++ b/firmware/export/kernel.h @@ -80,6 +80,7 @@ #define SYS_CAR_ADAPTER_RESUME MAKE_SYS_EVENT(SYS_EVENT_CLS_MISC, 1) #define SYS_IAP_PERIODIC MAKE_SYS_EVENT(SYS_EVENT_CLS_MISC, 2) #define SYS_IAP_HANDLEPKT MAKE_SYS_EVENT(SYS_EVENT_CLS_MISC, 3) +#define SYS_FOURHERTZ MAKE_SYS_EVENT(SYS_EVENT_CLS_MISC, 4) #define IS_SYSEVENT(ev) ((ev & SYS_EVENT) == SYS_EVENT) -- cgit v1.2.3