Added command line parameter "--old_lcd" that will simulate the old LCD of
the player. Made the screen a bit larger too. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2761 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3262207223
commit
dbab14de1f
1 changed files with 17 additions and 6 deletions
|
@ -64,6 +64,7 @@
|
||||||
# define _tolower(c) ((c) - 'A' + 'a')
|
# define _tolower(c) ((c) - 'A' + 'a')
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
char having_new_lcd=True;
|
||||||
|
|
||||||
char *progname;
|
char *progname;
|
||||||
XrmDatabase db;
|
XrmDatabase db;
|
||||||
|
@ -87,7 +88,7 @@ static char *default_defaults[] = {
|
||||||
#ifdef HAVE_LCD_BITMAP
|
#ifdef HAVE_LCD_BITMAP
|
||||||
"120x68"
|
"120x68"
|
||||||
#else
|
#else
|
||||||
"264x128"
|
"280x132" /* A bit larger that necessary */
|
||||||
#endif
|
#endif
|
||||||
, /* this should be .geometry, but nooooo... */
|
, /* this should be .geometry, but nooooo... */
|
||||||
"*mono: false",
|
"*mono: false",
|
||||||
|
@ -212,12 +213,14 @@ int screenhack_handle_event(Display *dpy, XEvent *event, bool *release)
|
||||||
break;
|
break;
|
||||||
case Expose:
|
case Expose:
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
int x=event->xexpose.width+event->xexpose.x;
|
int x=event->xexpose.width+event->xexpose.x;
|
||||||
int y=event->xexpose.height+event->xexpose.y;
|
int y=event->xexpose.height+event->xexpose.y;
|
||||||
screen_resized(x, y);
|
screen_resized(x, y);
|
||||||
screen_redraw();
|
|
||||||
fprintf(stderr, "WINDOW RESIZED to width %d height %d\n",
|
fprintf(stderr, "WINDOW RESIZED to width %d height %d\n",
|
||||||
x, y);
|
x, y);
|
||||||
|
*/
|
||||||
|
screen_redraw();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -344,10 +347,18 @@ int main (int argc, char **argv)
|
||||||
|
|
||||||
if (argc > 1)
|
if (argc > 1)
|
||||||
{
|
{
|
||||||
fprintf (stderr,
|
int x;
|
||||||
"This is the RockBox simulator. The firmware will not take\n"
|
for (x=1; x<argc; x++) {
|
||||||
"arguements, so the simulator will not either.\n");
|
if (!strcmp("--old_lcd", argv[x])) {
|
||||||
exit(0);
|
having_new_lcd=FALSE;
|
||||||
|
printf("Using old LCD layout.\n");
|
||||||
|
} else {
|
||||||
|
printf("rockboxui\n");
|
||||||
|
printf("Arguments:\n");
|
||||||
|
printf(" --old_lcd \t [Player] simulate old playermodel (ROM version<4.51)\n");
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CellsOfScreen (DefaultScreenOfDisplay (dpy)) <= 2)
|
if (CellsOfScreen (DefaultScreenOfDisplay (dpy)) <= 2)
|
||||||
|
|
Loading…
Reference in a new issue