diff options
Diffstat (limited to 'uisimulator/x11/uibasic.c')
-rw-r--r-- | uisimulator/x11/uibasic.c | 7 |
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 @@ | |||
46 | GC draw_gc; | 46 | GC draw_gc; |
47 | static Colormap cmap; | 47 | static Colormap cmap; |
48 | 48 | ||
49 | static int display_zoom=1; | 49 | int display_zoom=1; |
50 | 50 | ||
51 | Display *dpy; | 51 | Display *dpy; |
52 | Window window; | 52 | Window 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); |