mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-29 09:44:52 +01:00
Merge pull request #2460 from janisozaur/scale-limit
Raise the lower limit for scale to 0.5f
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user