mirror of https://github.com/OpenRCT2/OpenRCT2.git
Merge pull request #2460 from janisozaur/scale-limit
Raise the lower limit for scale to 0.5f
This commit is contained in:
commit
67f612c18c
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue