diff options
author | Mats Lidell <matsl@rockbox.org> | 2002-10-18 09:20:14 +0000 |
---|---|---|
committer | Mats Lidell <matsl@rockbox.org> | 2002-10-18 09:20:14 +0000 |
commit | a99c565d72355c0190087f0b7cae0e3a31b27a95 (patch) | |
tree | 7b51ac311a22184cf47dca9b40679a8fac5f2ae9 /uisimulator/common | |
parent | d4efbada617c5bf0ac0b73924245e3b93736beea (diff) |
Moved lcd player code to lcd-playersim.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2714 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/common')
-rw-r--r-- | uisimulator/common/stubs.c | 60 |
1 files 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; } |