diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2009-12-09 07:25:46 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2009-12-09 07:25:46 +0000 |
commit | b2eb44ce0eb24632a46b0ea8c8c46a8f2ba35e24 (patch) | |
tree | ff3c0e14e9a53c08749ee1f233a5b1e887d3561a /apps/recorder/keyboard.c | |
parent | 85aad9b3972208b0e34ba0241ebb5314118ae05e (diff) | |
download | rockbox-b2eb44ce0eb24632a46b0ea8c8c46a8f2ba35e24.tar.gz rockbox-b2eb44ce0eb24632a46b0ea8c8c46a8f2ba35e24.zip |
FS#10824 - viewport/statusbar API rework.
Hopefully the only user visible changes are:
- fm and recording screens go by the statusbar setting (sbs or inbuilt)
- plugins go back to using the theme as they should for menus and lists
- splash screens might get cut a bit... entirely theme and splash dependant.. if there is a problematic one we can look at it later.
- hopefully nothing more than very minor screen flickerings... let me know exactly where they are so they can be fixed
New GUI screen rules:
* Screens assume that the theme (sbs+ui viewport+ maybe background image) are always enabled. They may be disabled on a per display basis, but MUST be re-enabled on exit
* Screens must not be coded in a way that requires a statusbar of any type.. the inbuilt bar will be removed shortly.
ALWAYS RESPECT THE USERS SETTINGS unless the screen requires the full display to fit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23904 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/keyboard.c')
-rw-r--r-- | apps/recorder/keyboard.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/recorder/keyboard.c b/apps/recorder/keyboard.c index e6d31cb450..4d59a85bb1 100644 --- a/apps/recorder/keyboard.c +++ b/apps/recorder/keyboard.c | |||
@@ -291,10 +291,10 @@ int kbd_input(char* text, int buflen) | |||
291 | unsigned char morse_code = 0; | 291 | unsigned char morse_code = 0; |
292 | int morse_tick = 0; | 292 | int morse_tick = 0; |
293 | #endif | 293 | #endif |
294 | int oldbars = viewportmanager_set_statusbar(VP_SB_HIDE_ALL); | ||
295 | FOR_NB_SCREENS(l) | 294 | FOR_NB_SCREENS(l) |
296 | { | 295 | { |
297 | struct keyboard_parameters *pm = ¶m[l]; | 296 | struct keyboard_parameters *pm = ¶m[l]; |
297 | viewportmanager_theme_enable(l, false, NULL); | ||
298 | #if LCD_WIDTH >= 160 && LCD_HEIGHT >= 96 | 298 | #if LCD_WIDTH >= 160 && LCD_HEIGHT >= 96 |
299 | struct screen *sc = &screens[l]; | 299 | struct screen *sc = &screens[l]; |
300 | 300 | ||
@@ -1126,9 +1126,9 @@ int kbd_input(char* text, int buflen) | |||
1126 | #endif /* HAVE_MORSE_INPUT && KBD_TOGGLE_INPUT */ | 1126 | #endif /* HAVE_MORSE_INPUT && KBD_TOGGLE_INPUT */ |
1127 | 1127 | ||
1128 | FOR_NB_SCREENS(l) | 1128 | FOR_NB_SCREENS(l) |
1129 | { | ||
1129 | screens[l].setfont(FONT_UI); | 1130 | screens[l].setfont(FONT_UI); |
1130 | viewportmanager_set_statusbar(oldbars); | 1131 | viewportmanager_theme_undo(l); |
1131 | send_event(GUI_EVENT_REFRESH, NULL); | 1132 | } |
1132 | |||
1133 | return ret; | 1133 | return ret; |
1134 | } | 1134 | } |