diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2008-05-29 09:14:32 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2008-05-29 09:14:32 +0000 |
commit | 43f0770943a3315561dbdcdb2bbb85b7026248b1 (patch) | |
tree | d6140e40c0b07f36f98aa86020d2c308d1acc960 /apps | |
parent | fd3b46c22ca34eabf1e3697ae7d54fb17da804a4 (diff) | |
download | rockbox-43f0770943a3315561dbdcdb2bbb85b7026248b1.tar.gz rockbox-43f0770943a3315561dbdcdb2bbb85b7026248b1.zip |
move the HAS_BUTTONBAR define to the config-<target>.h files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17652 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/gui/buttonbar.h | 12 | ||||
-rw-r--r-- | apps/recorder/keyboard.c | 5 |
2 files changed, 7 insertions, 10 deletions
diff --git a/apps/gui/buttonbar.h b/apps/gui/buttonbar.h index e7a366420c..3098ecce4f 100644 --- a/apps/gui/buttonbar.h +++ b/apps/gui/buttonbar.h | |||
@@ -21,13 +21,14 @@ | |||
21 | #define _GUI_BUTTONBAR_H_ | 21 | #define _GUI_BUTTONBAR_H_ |
22 | #include "config.h" | 22 | #include "config.h" |
23 | #include "button.h" | 23 | #include "button.h" |
24 | #if CONFIG_KEYPAD == RECORDER_PAD | 24 | #include "screen_access.h" |
25 | |||
25 | 26 | ||
26 | #define HAS_BUTTONBAR | 27 | #ifdef HAS_BUTTONBAR |
27 | #define BUTTONBAR_HEIGHT 8 | 28 | #define BUTTONBAR_HEIGHT 8 |
28 | #define BUTTONBAR_MAX_BUTTONS 3 | 29 | #define BUTTONBAR_MAX_BUTTONS 3 |
29 | #define BUTTONBAR_CAPTION_LENGTH 8 | 30 | #define BUTTONBAR_CAPTION_LENGTH 8 |
30 | #include "screen_access.h" | 31 | |
31 | 32 | ||
32 | struct gui_buttonbar | 33 | struct gui_buttonbar |
33 | { | 34 | { |
@@ -76,6 +77,7 @@ extern void gui_buttonbar_draw(struct gui_buttonbar * buttonbar); | |||
76 | * - buttonbar : the buttonbar | 77 | * - buttonbar : the buttonbar |
77 | */ | 78 | */ |
78 | extern bool gui_buttonbar_isset(struct gui_buttonbar * buttonbar); | 79 | extern bool gui_buttonbar_isset(struct gui_buttonbar * buttonbar); |
79 | 80 | #else | |
80 | #endif /* CONFIG_KEYPAD == RECORDER_PAD */ | 81 | #define BUTTONBAR_HEIGHT 0 |
82 | #endif | ||
81 | #endif /* _GUI_BUTTONBAR_H_ */ | 83 | #endif /* _GUI_BUTTONBAR_H_ */ |
diff --git a/apps/recorder/keyboard.c b/apps/recorder/keyboard.c index ae7666f788..752e0369e9 100644 --- a/apps/recorder/keyboard.c +++ b/apps/recorder/keyboard.c | |||
@@ -40,11 +40,6 @@ | |||
40 | #define O_BINARY 0 | 40 | #define O_BINARY 0 |
41 | #endif | 41 | #endif |
42 | 42 | ||
43 | #if CONFIG_KEYPAD == RECORDER_PAD | ||
44 | #define BUTTONBAR_HEIGHT 8 | ||
45 | #else | ||
46 | #define BUTTONBAR_HEIGHT 0 | ||
47 | #endif | ||
48 | 43 | ||
49 | #define DEFAULT_MARGIN 6 | 44 | #define DEFAULT_MARGIN 6 |
50 | #define KBD_BUF_SIZE 500 | 45 | #define KBD_BUF_SIZE 500 |