diff options
Diffstat (limited to 'uisimulator')
-rw-r--r-- | uisimulator/lcd.c | 4 | ||||
-rw-r--r-- | uisimulator/uibasic.c | 18 |
2 files changed, 10 insertions, 12 deletions
diff --git a/uisimulator/lcd.c b/uisimulator/lcd.c index 4909b5cc49..052330c115 100644 --- a/uisimulator/lcd.c +++ b/uisimulator/lcd.c | |||
@@ -256,4 +256,8 @@ void lcd_string(const char *text, char invert) | |||
256 | lcd_y += CHAR_Y; | 256 | lcd_y += CHAR_Y; |
257 | } | 257 | } |
258 | } | 258 | } |
259 | #ifdef LCD_DEBUG | ||
260 | fprintf(stderr, "lcd_string: position after write: %d, %d\n", | ||
261 | lcd_x, lcd_y); | ||
262 | #endif | ||
259 | } | 263 | } |
diff --git a/uisimulator/uibasic.c b/uisimulator/uibasic.c index c6c9c7d236..9af52f4839 100644 --- a/uisimulator/uibasic.c +++ b/uisimulator/uibasic.c | |||
@@ -225,13 +225,15 @@ screenhack (Display *the_dpy, Window the_window) | |||
225 | Logf("Rockbox will kill ya!"); | 225 | Logf("Rockbox will kill ya!"); |
226 | 226 | ||
227 | lcd_position(1, 1); | 227 | lcd_position(1, 1); |
228 | lcd_string( "RockBoxx", 0); | 228 | lcd_string( "R", 0); |
229 | 229 | ||
230 | lcd_position(8, 16); | 230 | lcd_position(0, 16); |
231 | lcd_string( "R", 0); | 231 | lcd_string( "R", 0); |
232 | 232 | ||
233 | #if 0 | ||
233 | lcd_position(8, 24); | 234 | lcd_position(8, 24); |
234 | lcd_string( "2", 0); | 235 | lcd_string( "2", 0); |
236 | #endif | ||
235 | 237 | ||
236 | while (1) { | 238 | while (1) { |
237 | /* deal with input here */ | 239 | /* deal with input here */ |
@@ -247,6 +249,8 @@ void screen_redraw() | |||
247 | 249 | ||
248 | lcd_update(); | 250 | lcd_update(); |
249 | 251 | ||
252 | /* draw a border around the "Recorder" screen */ | ||
253 | |||
250 | #define X1 0 | 254 | #define X1 0 |
251 | #define Y1 0 | 255 | #define Y1 0 |
252 | #define X2 (LCD_WIDTH + MARGIN_X*2) | 256 | #define X2 (LCD_WIDTH + MARGIN_X*2) |
@@ -257,14 +261,4 @@ void screen_redraw() | |||
257 | drawline(1, X1, Y2, X2, Y2); | 261 | drawline(1, X1, Y2, X2, Y2); |
258 | drawline(1, X1, Y1, X1, Y2); | 262 | drawline(1, X1, Y1, X1, Y2); |
259 | 263 | ||
260 | #if 0 | ||
261 | /* does nothing "real" yet */ | ||
262 | /* drawtext(1, 20, 20, PROGNAME);*/ | ||
263 | |||
264 | for(y=0; y< 112; y++) | ||
265 | for(x=0; x<64; x++) | ||
266 | drawdot(1, x+16, y+16); | ||
267 | /* drawline(1, 0, 0, 40, 50); */ | ||
268 | #endif | ||
269 | } | 264 | } |
270 | |||