diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-03-26 14:27:03 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-03-26 14:27:03 +0000 |
commit | a1fd255d04e1835b2c8cc77ea414ecddea55d8e6 (patch) | |
tree | 434151e5e9477147cf23440937190dd2541e1c6d /uisimulator/uibasic.c | |
parent | e4469775794e43c6bb0c6cb00e7fa8f4d9fd788e (diff) |
updates
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/uibasic.c')
-rw-r--r-- | uisimulator/uibasic.c | 26 |
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 @@ #include "version.h" +#include "lcd.h" +#include "lcd-x11.h" + #define MAX(x,y) ((x)>(y)?(x):(y)) #define MIN(x,y) ((x)<(y)?(x):(y)) @@ -78,7 +81,7 @@ void Logf(char *fmt, ...) t = localtime(&now); log = fopen(LOGFILE, "a"); if(log) { - fprintf(log, "%02d.%02d.%02d ", + fprintf(log, "%02d:%02d:%02d ", t->tm_hour, t->tm_min, t->tm_sec); vfprintf(log, fmt, args); fprintf(log, "\n"); @@ -86,7 +89,7 @@ void Logf(char *fmt, ...) fclose(log); } - fprintf(stderr, "%02d.%02d.%02d ", + fprintf(stderr, "%02d:%02d:%02d ", t->tm_hour, t->tm_min, t->tm_sec); vfprintf(stderr, fmt, args); fprintf(stderr, "\n"); @@ -221,7 +224,14 @@ screenhack (Display *the_dpy, Window the_window) Logf("Rockbox will kill ya!"); - lcd_string( PROGNAME, 0); + lcd_position(1, 1); + lcd_string( "RockBoxx", 0); + + lcd_position(8, 16); + lcd_string( "R", 0); + + lcd_position(8, 24); + lcd_string( "2", 0); while (1) { /* deal with input here */ @@ -237,6 +247,16 @@ void screen_redraw() lcd_update(); +#define X1 0 +#define Y1 0 +#define X2 (LCD_WIDTH + MARGIN_X*2) +#define Y2 (LCD_HEIGHT + MARGIN_Y*2) + + drawline(1, X1, Y1, X2, Y1); + drawline(1, X2, Y1, X2, Y2); + drawline(1, X1, Y2, X2, Y2); + drawline(1, X1, Y1, X1, Y2); + #if 0 /* does nothing "real" yet */ /* drawtext(1, 20, 20, PROGNAME);*/ |