mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
updates
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e446977579
commit
a1fd255d04
6 changed files with 71 additions and 10 deletions
|
|
@ -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);*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue