summaryrefslogtreecommitdiff
path: root/uisimulator/x11/uibasic.c
diff options
context:
space:
mode:
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);