summaryrefslogtreecommitdiff
path: root/uisimulator/uibasic.c
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/uibasic.c')
-rw-r--r--uisimulator/uibasic.c26
1 files changed, 23 insertions, 3 deletions
diff --git a/uisimulator/uibasic.c b/uisimulator/uibasic.c
index 2d9f33fb7d..c6c9c7d236 100644
--- a/uisimulator/uibasic.c
+++ b/uisimulator/uibasic.c
@@ -33,6 +33,9 @@
33 33
34#include "version.h" 34#include "version.h"
35 35
36#include "lcd.h"
37#include "lcd-x11.h"
38
36#define MAX(x,y) ((x)>(y)?(x):(y)) 39#define MAX(x,y) ((x)>(y)?(x):(y))
37#define MIN(x,y) ((x)<(y)?(x):(y)) 40#define MIN(x,y) ((x)<(y)?(x):(y))
38 41
@@ -78,7 +81,7 @@ void Logf(char *fmt, ...)
78 t = localtime(&now); 81 t = localtime(&now);
79 log = fopen(LOGFILE, "a"); 82 log = fopen(LOGFILE, "a");
80 if(log) { 83 if(log) {
81 fprintf(log, "%02d.%02d.%02d ", 84 fprintf(log, "%02d:%02d:%02d ",
82 t->tm_hour, t->tm_min, t->tm_sec); 85 t->tm_hour, t->tm_min, t->tm_sec);
83 vfprintf(log, fmt, args); 86 vfprintf(log, fmt, args);
84 fprintf(log, "\n"); 87 fprintf(log, "\n");
@@ -86,7 +89,7 @@ void Logf(char *fmt, ...)
86 fclose(log); 89 fclose(log);
87 } 90 }
88 91
89 fprintf(stderr, "%02d.%02d.%02d ", 92 fprintf(stderr, "%02d:%02d:%02d ",
90 t->tm_hour, t->tm_min, t->tm_sec); 93 t->tm_hour, t->tm_min, t->tm_sec);
91 vfprintf(stderr, fmt, args); 94 vfprintf(stderr, fmt, args);
92 fprintf(stderr, "\n"); 95 fprintf(stderr, "\n");
@@ -221,7 +224,14 @@ screenhack (Display *the_dpy, Window the_window)
221 224
222 Logf("Rockbox will kill ya!"); 225 Logf("Rockbox will kill ya!");
223 226
224 lcd_string( PROGNAME, 0); 227 lcd_position(1, 1);
228 lcd_string( "RockBoxx", 0);
229
230 lcd_position(8, 16);
231 lcd_string( "R", 0);
232
233 lcd_position(8, 24);
234 lcd_string( "2", 0);
225 235
226 while (1) { 236 while (1) {
227 /* deal with input here */ 237 /* deal with input here */
@@ -237,6 +247,16 @@ void screen_redraw()
237 247
238 lcd_update(); 248 lcd_update();
239 249
250#define X1 0
251#define Y1 0
252#define X2 (LCD_WIDTH + MARGIN_X*2)
253#define Y2 (LCD_HEIGHT + MARGIN_Y*2)
254
255 drawline(1, X1, Y1, X2, Y1);
256 drawline(1, X2, Y1, X2, Y2);
257 drawline(1, X1, Y2, X2, Y2);
258 drawline(1, X1, Y1, X1, Y2);
259
240#if 0 260#if 0
241 /* does nothing "real" yet */ 261 /* does nothing "real" yet */
242 /* drawtext(1, 20, 20, PROGNAME);*/ 262 /* drawtext(1, 20, 20, PROGNAME);*/