diff options
-rw-r--r-- | uisimulator/x11/screenhack.c | 8 | ||||
-rw-r--r-- | 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 [] = { | |||
83 | 83 | ||
84 | static char *default_defaults[] = { | 84 | static char *default_defaults[] = { |
85 | ".root: false", | 85 | ".root: false", |
86 | "*geometry: 120x70", /* this should be .geometry, but nooooo... */ | 86 | "*geometry: " |
87 | #ifdef HAVE_LCD_BITMAP | ||
88 | "120x68" | ||
89 | #else | ||
90 | "138x54" | ||
91 | #endif | ||
92 | , /* this should be .geometry, but nooooo... */ | ||
87 | "*mono: false", | 93 | "*mono: false", |
88 | "*installColormap: false", | 94 | "*installColormap: false", |
89 | "*visualID: default", | 95 | "*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) | |||
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); |