From 0ca9ccbe639de312343ec549c5fbb769c2f52ff3 Mon Sep 17 00:00:00 2001 From: Kjell Ericson Date: Mon, 20 Jan 2003 09:39:38 +0000 Subject: 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 --- uisimulator/x11/screenhack.c | 76 ++++++++++++++++++++++++++++++++++---------- uisimulator/x11/uibasic.c | 7 +--- 2 files changed, 61 insertions(+), 22 deletions(-) (limited to 'uisimulator') diff --git a/uisimulator/x11/screenhack.c b/uisimulator/x11/screenhack.c index 37c5d2061a..277e68be62 100644 --- a/uisimulator/x11/screenhack.c +++ b/uisimulator/x11/screenhack.c @@ -84,6 +84,7 @@ static XrmOptionDescRec default_options [] = { static char *default_defaults[] = { ".root: false", +#define GEOMETRY_POSITION 1 "*geometry: " #ifdef HAVE_LCD_BITMAP "120x68" @@ -99,6 +100,7 @@ static char *default_defaults[] = { }; extern Display* dpy; +extern int display_zoom; static XrmOptionDescRec *merged_options; static int merged_options_size; @@ -313,6 +315,64 @@ int main (int argc, char **argv) char version[255]; sprintf(version,"rockboxui %s",ROCKBOXUI_VERSION); +#ifdef HAVE_LCD_BITMAP + display_zoom=2; + { + char *env=getenv("RECORDER_ZOOM"); + if (env) { + display_zoom=atoi(env); + } + } +#else + display_zoom=1; + { + char *env=getenv("PLAYER_ZOOM"); + if (env) { + display_zoom=atoi(env); + } + } +#endif + + if (argc > 1) + { + int x; + for (x=1; x 1) - { - int x; - for (x=1; x