From a99c565d72355c0190087f0b7cae0e3a31b27a95 Mon Sep 17 00:00:00 2001 From: Mats Lidell Date: Fri, 18 Oct 2002 09:20:14 +0000 Subject: Moved lcd player code to lcd-playersim. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2714 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/common/stubs.c | 60 ++++------------------------------------------ 1 file changed, 4 insertions(+), 56 deletions(-) diff --git a/uisimulator/common/stubs.c b/uisimulator/common/stubs.c index 6ff64b8fca..f615d9a4a4 100644 --- a/uisimulator/common/stubs.c +++ b/uisimulator/common/stubs.c @@ -111,58 +111,6 @@ bool simulate_usb(void) return false; } -static char patterns[8][7]; - -void lcd_define_pattern(int which, char *pattern, int length) -{ - int i, j; - int pat = which / 8; - char icon[8]; - memset(icon, 0, sizeof icon); - - DEBUGF("Defining pattern %d\n", pat); - for (j = 0; j <= 5; j++) { - for (i = 0; i < length; i++) { - if ((pattern[i])&(1<<(j))) - icon[5-j] |= (1<<(i)); - } - } - for (i = 0; i <= 5; i++) - { - patterns[pat][i] = icon[i]; - } -} - -char* get_lcd_pattern(int which) -{ - DEBUGF("Get pattern %d\n", which); - return patterns[which]; -} - -extern void lcd_puts(int x, int y, unsigned char *str); - -void lcd_putc(int x, int y, unsigned char ch) -{ - static char str[2] = "x"; - if (ch <= 8) - { - char* bm = get_lcd_pattern(ch); - lcd_bitmap(bm, x * 6, (y * 8) + 8, 6, 8, true); - return; - } - if (ch == 137) { - /* Have no good font yet. Simulate the cursor character. */ - ch = '>'; - } - str[0] = ch; - lcd_puts(x, y, str); -} - -void lcd_set_contrast( int x ) -{ - (void)x; -} - void backlight_set_timeout(int seconds) { (void)seconds; @@ -213,12 +161,12 @@ bool oscillograph(void) return false; } -void lcd_double_height(bool onoff) +bool has_new_lcd(void) { - (void)onoff; + return false; } -bool has_new_lcd(void) +void lcd_set_contrast( int x ) { - return false; + (void)x; } -- cgit v1.2.3