diff options
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) | |||
111 | return false; | 111 | return false; |
112 | } | 112 | } |
113 | 113 | ||
114 | static char patterns[8][7]; | ||
115 | |||
116 | void lcd_define_pattern(int which, char *pattern, int length) | ||
117 | { | ||
118 | int i, j; | ||
119 | int pat = which / 8; | ||
120 | char icon[8]; | ||
121 | memset(icon, 0, sizeof icon); | ||
122 | |||
123 | DEBUGF("Defining pattern %d\n", pat); | ||
124 | for (j = 0; j <= 5; j++) { | ||
125 | for (i = 0; i < length; i++) { | ||
126 | if ((pattern[i])&(1<<(j))) | ||
127 | icon[5-j] |= (1<<(i)); | ||
128 | } | ||
129 | } | ||
130 | for (i = 0; i <= 5; i++) | ||
131 | { | ||
132 | patterns[pat][i] = icon[i]; | ||
133 | } | ||
134 | } | ||
135 | |||
136 | char* get_lcd_pattern(int which) | ||
137 | { | ||
138 | DEBUGF("Get pattern %d\n", which); | ||
139 | return patterns[which]; | ||
140 | } | ||
141 | |||
142 | extern void lcd_puts(int x, int y, unsigned char *str); | ||
143 | |||
144 | void lcd_putc(int x, int y, unsigned char ch) | ||
145 | { | ||
146 | static char str[2] = "x"; | ||
147 | if (ch <= 8) | ||
148 | { | ||
149 | char* bm = get_lcd_pattern(ch); | ||
150 | lcd_bitmap(bm, x * 6, (y * 8) + 8, 6, 8, true); | ||
151 | return; | ||
152 | } | ||
153 | if (ch == 137) { | ||
154 | /* Have no good font yet. Simulate the cursor character. */ | ||
155 | ch = '>'; | ||
156 | } | ||
157 | str[0] = ch; | ||
158 | lcd_puts(x, y, str); | ||
159 | } | ||
160 | |||
161 | void lcd_set_contrast( int x ) | ||
162 | { | ||
163 | (void)x; | ||
164 | } | ||
165 | |||
166 | void backlight_set_timeout(int seconds) | 114 | void backlight_set_timeout(int seconds) |
167 | { | 115 | { |
168 | (void)seconds; | 116 | (void)seconds; |
@@ -213,12 +161,12 @@ bool oscillograph(void) | |||
213 | return false; | 161 | return false; |
214 | } | 162 | } |
215 | 163 | ||
216 | void lcd_double_height(bool onoff) | 164 | bool has_new_lcd(void) |
217 | { | 165 | { |
218 | (void)onoff; | 166 | return false; |
219 | } | 167 | } |
220 | 168 | ||
221 | bool has_new_lcd(void) | 169 | void lcd_set_contrast( int x ) |
222 | { | 170 | { |
223 | return false; | 171 | (void)x; |
224 | } | 172 | } |