diff options
Diffstat (limited to 'firmware/target/hosted')
-rw-r--r-- | firmware/target/hosted/sdl/lcd-sdl.c | 2 | ||||
-rw-r--r-- | firmware/target/hosted/sdl/system-sdl.c | 4 | ||||
-rw-r--r-- | firmware/target/hosted/sdl/system-sdl.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/firmware/target/hosted/sdl/lcd-sdl.c b/firmware/target/hosted/sdl/lcd-sdl.c index 57026eedfe..40ba94072b 100644 --- a/firmware/target/hosted/sdl/lcd-sdl.c +++ b/firmware/target/hosted/sdl/lcd-sdl.c | |||
@@ -24,7 +24,7 @@ | |||
24 | #include "sim-ui-defines.h" | 24 | #include "sim-ui-defines.h" |
25 | #include "system.h" /* for MIN() and MAX() */ | 25 | #include "system.h" /* for MIN() and MAX() */ |
26 | 26 | ||
27 | int display_zoom = 1; | 27 | double display_zoom = 1; |
28 | 28 | ||
29 | void sdl_update_rect(SDL_Surface *surface, int x_start, int y_start, int width, | 29 | void sdl_update_rect(SDL_Surface *surface, int x_start, int y_start, int width, |
30 | int height, int max_x, int max_y, | 30 | int height, int max_x, int max_y, |
diff --git a/firmware/target/hosted/sdl/system-sdl.c b/firmware/target/hosted/sdl/system-sdl.c index 1e1968d66d..b03ed89d49 100644 --- a/firmware/target/hosted/sdl/system-sdl.c +++ b/firmware/target/hosted/sdl/system-sdl.c | |||
@@ -314,7 +314,7 @@ void sys_handle_argv(int argc, char *argv[]) | |||
314 | { | 314 | { |
315 | x++; | 315 | x++; |
316 | if(x < argc) | 316 | if(x < argc) |
317 | display_zoom=atoi(argv[x]); | 317 | display_zoom=atof(argv[x]); |
318 | else | 318 | else |
319 | display_zoom = 2; | 319 | display_zoom = 2; |
320 | printf("Window zoom is %d\n", display_zoom); | 320 | printf("Window zoom is %d\n", display_zoom); |
@@ -364,7 +364,7 @@ void sys_handle_argv(int argc, char *argv[]) | |||
364 | } | 364 | } |
365 | } | 365 | } |
366 | } | 366 | } |
367 | if (display_zoom > 1) { | 367 | if (display_zoom != 1) { |
368 | background = false; | 368 | background = false; |
369 | } | 369 | } |
370 | } | 370 | } |
diff --git a/firmware/target/hosted/sdl/system-sdl.h b/firmware/target/hosted/sdl/system-sdl.h index 979d556fdd..43ee0bdff1 100644 --- a/firmware/target/hosted/sdl/system-sdl.h +++ b/firmware/target/hosted/sdl/system-sdl.h | |||
@@ -59,7 +59,7 @@ void sim_do_exit(void) NORETURN_ATTR; | |||
59 | 59 | ||
60 | extern bool background; /* True if the background image is enabled */ | 60 | extern bool background; /* True if the background image is enabled */ |
61 | extern bool showremote; | 61 | extern bool showremote; |
62 | extern int display_zoom; | 62 | extern double display_zoom; |
63 | extern long start_tick; | 63 | extern long start_tick; |
64 | 64 | ||
65 | #endif /* _SYSTEM_SDL_H_ */ | 65 | #endif /* _SYSTEM_SDL_H_ */ |