From b757b50d0a7b63873c6958c0060f75ace73f72ff Mon Sep 17 00:00:00 2001 From: Nils Wallménius Date: Sun, 17 Dec 2006 19:51:30 +0000 Subject: Add colon and semicolon to the default virtual keyboard, clean up some unneccesary includes and exclude vkeyboard for larger displays from builds where it was never used -- saves approx 300 bytes on achos builds git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11790 a1c6a512-1295-4272-9138-f99709370657 --- apps/recorder/keyboard.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/apps/recorder/keyboard.c b/apps/recorder/keyboard.c index 4eb99d1eed..7751dac906 100644 --- a/apps/recorder/keyboard.c +++ b/apps/recorder/keyboard.c @@ -16,13 +16,9 @@ * KIND, either express or implied. * ****************************************************************************/ -#include "lcd.h" -#include "button.h" #include "kernel.h" #include "system.h" #include "version.h" -#include "debug_menu.h" -#include "sprintf.h" #include #include "font.h" #include "screens.h" @@ -33,8 +29,6 @@ #include "rbunicode.h" #include "buttonbar.h" #include "logf.h" -#include "icons.h" -#include "file.h" #include "hangul.h" #include "action.h" @@ -177,7 +171,7 @@ static void kbd_spellchar(unsigned short c) } } -void kbd_inschar(unsigned char* text, int buflen, int* editpos, unsigned short ch) +static void kbd_inschar(unsigned char* text, int buflen, int* editpos, unsigned short ch) { int i, j, k, len; unsigned char tmp[4]; @@ -202,7 +196,7 @@ void kbd_inschar(unsigned char* text, int buflen, int* editpos, unsigned short c return; } -void kbd_delchar(unsigned char* text, int* editpos) +static void kbd_delchar(unsigned char* text, int* editpos) { int i = 0; unsigned char* utf8; @@ -248,6 +242,7 @@ int kbd_input(char* text, int buflen) FOR_NB_SCREENS(l) { +#if LCD_WIDTH >= 160 && LCD_HEIGHT >=96 if ((screens[l].width >= 160) && (screens[l].height >= 96)) { param[l].default_kbd = @@ -258,12 +253,13 @@ int kbd_input(char* text, int buflen) "ÀÁÂÃÄÅÆ ÌÍÎÏ ÈÉÊË ¢£¤¥¦§©®\n" "àáâãäåæ ìíîï èéêë «»°ºª¹²³\n" "ÓÒÔÕÖØ ÇÐÞÝß ÙÚÛÜ ¯±×÷¡¿µ·\n" - "òóôõöø çðþýÿ ùúûü ¼½¾¬¶¨"; + "òóôõöø çðþýÿ ùúûü ¼½¾¬¶¨:;"; param[l].DEFAULT_LINES = 8; } else { +#endif param[l].default_kbd = "ABCDEFG !?\" @#$%+'\n" "HIJKLMN 789 &_()-`\n" @@ -273,7 +269,7 @@ int kbd_input(char* text, int buflen) "abcdefg ¢£¤¥¦§©®¬\n" "hijklmn «»°ºª¹²³¶\n" "opqrstu ¯±×÷¡¿µ·¨\n" - "vwxyz., ¼½¾ \n" + "vwxyz., :;¼½¾ \n" "ÀÁÂÃÄÅÆ ÌÍÎÏ ÈÉÊË\n" "àáâãäåæ ìíîï èéêë\n" @@ -281,7 +277,9 @@ int kbd_input(char* text, int buflen) "òóôõöø çðþýÿ ùúûü"; param[l].DEFAULT_LINES = 4; +#if LCD_WIDTH >= 160 } +#endif } #ifdef KBD_MODES bool line_edit = false; -- cgit v1.2.3