From dbab14de1f7628dea193eb45143a44ec961fddc9 Mon Sep 17 00:00:00 2001 From: Kjell Ericson Date: Mon, 28 Oct 2002 20:02:30 +0000 Subject: 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 --- uisimulator/x11/screenhack.c | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) (limited to 'uisimulator/x11') diff --git a/uisimulator/x11/screenhack.c b/uisimulator/x11/screenhack.c index 1dfc12448c..37c5d2061a 100644 --- a/uisimulator/x11/screenhack.c +++ b/uisimulator/x11/screenhack.c @@ -64,6 +64,7 @@ # define _tolower(c) ((c) - 'A' + 'a') #endif +char having_new_lcd=True; char *progname; XrmDatabase db; @@ -87,7 +88,7 @@ static char *default_defaults[] = { #ifdef HAVE_LCD_BITMAP "120x68" #else - "264x128" + "280x132" /* A bit larger that necessary */ #endif , /* this should be .geometry, but nooooo... */ "*mono: false", @@ -212,12 +213,14 @@ int screenhack_handle_event(Display *dpy, XEvent *event, bool *release) break; case Expose: { + /* int x=event->xexpose.width+event->xexpose.x; int y=event->xexpose.height+event->xexpose.y; screen_resized(x, y); - screen_redraw(); fprintf(stderr, "WINDOW RESIZED to width %d height %d\n", x, y); + */ + screen_redraw(); } break; default: @@ -344,10 +347,18 @@ int main (int argc, char **argv) if (argc > 1) { - fprintf (stderr, - "This is the RockBox simulator. The firmware will not take\n" - "arguements, so the simulator will not either.\n"); - exit(0); + int x; + for (x=1; x