From d2117e966ffa0395ab6fd422439d5b297f3dfb24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Fri, 11 Dec 2015 00:15:17 +0100 Subject: [PATCH] Raise the lower limit for scale to 0.5f Setting the scale to anything lower than 0.3f crashes the game on my machine, although I don't know the exact reason of that. The game at window_scale=0.1 is unusable anyway, as the interface is far too small. --- src/interface/console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interface/console.c b/src/interface/console.c index bac47069ad..09d6fcce87 100644 --- a/src/interface/console.c +++ b/src/interface/console.c @@ -691,7 +691,7 @@ static int cc_set(const utf8 **argv, int argc) } else if (strcmp(argv[0], "window_scale") == 0 && invalidArguments(&invalidArgs, double_valid[0])) { float newScale = (float)(0.001*trunc(1000*double_val[0])); - gConfigGeneral.window_scale = clamp(newScale, 0.1f, 5.0f); + gConfigGeneral.window_scale = clamp(newScale, 0.5f, 5.0f); config_save_default(); gfx_invalidate_screen(); platform_trigger_resize();