summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2009-01-05 10:25:41 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2009-01-05 10:25:41 +0000
commit45aa9a22f9a3e08505cc2f2999459d249356ed9c (patch)
treece991ea640f1b1788238b28ff3ff6ced727dd773
parent1c924dbf08a4138bdc5c3f76283f6f97ff75f21a (diff)
temporarilty disable the statusbar in the keyboard because it doesnt use viewports and this is the easier fix than reworking the screen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19683 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/recorder/keyboard.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/recorder/keyboard.c b/apps/recorder/keyboard.c
index 26413e99da..c7e8ad8de0 100644
--- a/apps/recorder/keyboard.c
+++ b/apps/recorder/keyboard.c
@@ -37,6 +37,7 @@
#include "pcmbuf.h"
#include "lang.h"
#include "keyboard.h"
+#include "viewport.h"
#ifndef O_BINARY
#define O_BINARY 0
@@ -287,8 +288,7 @@ int kbd_input(char* text, int buflen)
int l; /* screen loop variable */
int text_w = 0;
int editpos; /* Edit position on all screens */
- const int statusbar_size = global_settings.statusbar
- ? STATUSBAR_HEIGHT : 0;
+ const int statusbar_size = 0;
unsigned short ch;
unsigned char *utf8;
bool cur_blink = true; /* Cursor on/off flag */
@@ -298,7 +298,7 @@ int kbd_input(char* text, int buflen)
int morse_tick = 0;
char buf[2];
#endif
-
+ bool oldbars = viewportmanager_set_statusbar(false);
FOR_NB_SCREENS(l)
{
struct keyboard_parameters *pm = &param[l];
@@ -773,6 +773,7 @@ int kbd_input(char* text, int buflen)
#ifdef HAVE_BUTTONBAR
global_settings.buttonbar=buttonbar_config;
#endif
+ viewportmanager_set_statusbar(oldbars);
return -1;
break;
@@ -1241,6 +1242,7 @@ int kbd_input(char* text, int buflen)
FOR_NB_SCREENS(l)
screens[l].setfont(FONT_UI);
+ viewportmanager_set_statusbar(oldbars);
return 0;
}