summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-08-09 09:13:40 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-08-09 09:13:40 +0000
commit2ed1052a6db90aade49bb9180f28551179639d22 (patch)
treed598e1e0e074b97e625b3196ca911bda1f751f8c
parent7cdf5c8cabcbf36affb1e5768bacb9823c204a2e (diff)
downloadrockbox-2ed1052a6db90aade49bb9180f28551179639d22.zip
rockbox-2ed1052a6db90aade49bb9180f28551179639d22.tar.gz
rockbox-2ed1052a6db90aade49bb9180f28551179639d22.tar.bz2
rockbox-2ed1052a6db90aade49bb9180f28551179639d22.tar.xz
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
-rw-r--r--uisimulator/x11/screenhack.c8
-rw-r--r--uisimulator/x11/uibasic.c11
2 files changed, 17 insertions, 2 deletions
diff --git a/uisimulator/x11/screenhack.c b/uisimulator/x11/screenhack.c
index 72915f4..3b94309 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 19ab9c5..165b1ce 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);