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.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/uisimulator/x11/uibasic.c b/uisimulator/x11/uibasic.c
index 051f5a8b6f..82ce39973c 100644
--- a/uisimulator/x11/uibasic.c
+++ b/uisimulator/x11/uibasic.c
@@ -46,7 +46,7 @@
46GC draw_gc; 46GC draw_gc;
47static Colormap cmap; 47static Colormap cmap;
48 48
49static int display_zoom=1; 49int display_zoom=1;
50 50
51Display *dpy; 51Display *dpy;
52Window window; 52Window window;
@@ -90,11 +90,6 @@ void screen_resized(int width, int height)
90 maxx = width; 90 maxx = width;
91 maxy = height; 91 maxy = height;
92 92
93 display_zoom = maxy/LCD_HEIGHT;
94 if (maxx/LCD_WIDTH < display_zoom)
95 display_zoom = maxx/LCD_WIDTH;
96 if (display_zoom<1)
97 display_zoom = 1;
98 XSetForeground (dpy, draw_gc, get_pixel_resource ("background", "Background", 93 XSetForeground (dpy, draw_gc, get_pixel_resource ("background", "Background",
99 dpy, cmap)); 94 dpy, cmap));
100 XFillRectangle(dpy, window, draw_gc, 0, 0, width*display_zoom, height*display_zoom); 95 XFillRectangle(dpy, window, draw_gc, 0, 0, width*display_zoom, height*display_zoom);