From 2ed1052a6db90aade49bb9180f28551179639d22 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 9 Aug 2002 09:13:40 +0000 Subject: [PATCH] fix window sizes to match the screen size, enlarged the player sim font to use the 12x16 one git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1635 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/x11/screenhack.c | 8 +++++++- uisimulator/x11/uibasic.c | 11 ++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/uisimulator/x11/screenhack.c b/uisimulator/x11/screenhack.c index 72915f41a5..3b94309a7f 100644 --- a/uisimulator/x11/screenhack.c +++ b/uisimulator/x11/screenhack.c @@ -83,7 +83,13 @@ static XrmOptionDescRec default_options [] = { static char *default_defaults[] = { ".root: false", - "*geometry: 120x70", /* this should be .geometry, but nooooo... */ + "*geometry: " +#ifdef HAVE_LCD_BITMAP + "120x68" +#else + "138x54" +#endif + , /* this should be .geometry, but nooooo... */ "*mono: false", "*installColormap: false", "*visualID: default", diff --git a/uisimulator/x11/uibasic.c b/uisimulator/x11/uibasic.c index 19ab9c5980..165b1cebe9 100644 --- a/uisimulator/x11/uibasic.c +++ b/uisimulator/x11/uibasic.c @@ -197,6 +197,10 @@ screenhack (Display *the_dpy, Window the_window) screen_redraw(); +#ifdef HAVE_LCD_CHARCELLS + lcd_setfont(2); +#endif + app_main(); } @@ -206,8 +210,13 @@ void screen_redraw() #define X1 0 #define Y1 0 +#ifdef HAVE_LCD_BITMAP #define X2 (LCD_WIDTH + MARGIN_X*2) -#define Y2 (LCD_HEIGHT + MARGIN_Y*2) +#define Y2 (LCD_HEIGHT + MARGIN_Y) +#else +#define X2 137 +#define Y2 53 +#endif drawline(1, X1, Y1, X2, Y1); drawline(1, X2, Y1, X2, Y2);