summaryrefslogtreecommitdiff
path: root/uisimulator/x11/uibasic.c
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 /uisimulator/x11/uibasic.c
parent7cdf5c8cabcbf36affb1e5768bacb9823c204a2e (diff)
downloadrockbox-2ed1052a6db90aade49bb9180f28551179639d22.tar.gz
rockbox-2ed1052a6db90aade49bb9180f28551179639d22.zip
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
Diffstat (limited to 'uisimulator/x11/uibasic.c')
-rw-r--r--uisimulator/x11/uibasic.c11
1 files changed, 10 insertions, 1 deletions
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)
197 197
198 screen_redraw(); 198 screen_redraw();
199 199
200#ifdef HAVE_LCD_CHARCELLS
201 lcd_setfont(2);
202#endif
203
200 app_main(); 204 app_main();
201} 205}
202 206
@@ -206,8 +210,13 @@ void screen_redraw()
206 210
207#define X1 0 211#define X1 0
208#define Y1 0 212#define Y1 0
213#ifdef HAVE_LCD_BITMAP
209#define X2 (LCD_WIDTH + MARGIN_X*2) 214#define X2 (LCD_WIDTH + MARGIN_X*2)
210#define Y2 (LCD_HEIGHT + MARGIN_Y*2) 215#define Y2 (LCD_HEIGHT + MARGIN_Y)
216#else
217#define X2 137
218#define Y2 53
219#endif
211 220
212 drawline(1, X1, Y1, X2, Y1); 221 drawline(1, X1, Y1, X2, Y1);
213 drawline(1, X2, Y1, X2, Y2); 222 drawline(1, X2, Y1, X2, Y2);