summaryrefslogtreecommitdiff
path: root/apps/settings_list.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/settings_list.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/settings_list.c')
-rw-r--r--apps/settings_list.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/settings_list.c b/apps/settings_list.c
index e3874566ac..18bcb8ea2c 100644
--- a/apps/settings_list.c
+++ b/apps/settings_list.c
@@ -52,6 +52,7 @@
52#ifdef IPOD_ACCESSORY_PROTOCOL 52#ifdef IPOD_ACCESSORY_PROTOCOL
53#include "iap.h" 53#include "iap.h"
54#endif 54#endif
55#include "statusbar.h"
55 56
56#define NVRAM(bytes) (bytes<<F_NVRAM_MASK_SHIFT) 57#define NVRAM(bytes) (bytes<<F_NVRAM_MASK_SHIFT)
57/** NOTE: NVRAM_CONFIG_VERSION is in settings_list.h 58/** NOTE: NVRAM_CONFIG_VERSION is in settings_list.h
@@ -545,7 +546,7 @@ const struct settings_list settings[] = {
545 ID2P(LANG_INVERT_CURSOR_BAR)), 546 ID2P(LANG_INVERT_CURSOR_BAR)),
546 #endif 547 #endif
547 OFFON_SETTING(F_THEMESETTING|F_TEMPVAR, statusbar, 548 OFFON_SETTING(F_THEMESETTING|F_TEMPVAR, statusbar,
548 LANG_STATUS_BAR, true,"statusbar", NULL), 549 LANG_STATUS_BAR, true,"statusbar", gui_statusbar_changed),
549 OFFON_SETTING(0,scrollbar, LANG_SCROLL_BAR, true,"scrollbar", NULL), 550 OFFON_SETTING(0,scrollbar, LANG_SCROLL_BAR, true,"scrollbar", NULL),
550#if CONFIG_KEYPAD == RECORDER_PAD 551#if CONFIG_KEYPAD == RECORDER_PAD
551 OFFON_SETTING(0,buttonbar, LANG_BUTTON_BAR ,true,"buttonbar", NULL), 552 OFFON_SETTING(0,buttonbar, LANG_BUTTON_BAR ,true,"buttonbar", NULL),