diff options
author | Kjell Ericson <kjell@haxx.se> | 2003-01-20 09:39:38 +0000 |
---|---|---|
committer | Kjell Ericson <kjell@haxx.se> | 2003-01-20 09:39:38 +0000 |
commit | 0ca9ccbe639de312343ec549c5fbb769c2f52ff3 (patch) | |
tree | 438ddcaf9fe2a1fa6591402def696dbbbf0e1496 /uisimulator/x11/uibasic.c | |
parent | a5fdba92e1877926f43e9c89a1de3705e73967bd (diff) | |
download | rockbox-0ca9ccbe639de312343ec549c5fbb769c2f52ff3.tar.gz rockbox-0ca9ccbe639de312343ec549c5fbb769c2f52ff3.zip |
Default window zoom for Recorder simulator is 2.
You can change window zoom with the command line flags "--player_zoom" and "--recorder_zoom". Or you can set the environment variable RECORDER_ZOOM or PLAYER_ZOOM.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3131 a1c6a512-1295-4272-9138-f99709370657
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 @@ GC draw_gc; static Colormap cmap; -static int display_zoom=1; +int display_zoom=1; Display *dpy; Window window; @@ -90,11 +90,6 @@ void screen_resized(int width, int height) maxx = width; maxy = height; - display_zoom = maxy/LCD_HEIGHT; - if (maxx/LCD_WIDTH < display_zoom) - display_zoom = maxx/LCD_WIDTH; - if (display_zoom<1) - display_zoom = 1; XSetForeground (dpy, draw_gc, get_pixel_resource ("background", "Background", dpy, cmap)); XFillRectangle(dpy, window, draw_gc, 0, 0, width*display_zoom, height*display_zoom); |