mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-29 02:12:11 +00:00
(svn r2268) - Fix [ 1195595 ] high resolutions don't work. Clamp all possible inputs of resolutions to the maximum availble
This commit is contained in:
parent
c85f049f52
commit
df21566f9f
4
ttd.c
4
ttd.c
@ -421,8 +421,8 @@ static void ParseResolution(int res[2], char *s)
|
||||
return;
|
||||
}
|
||||
|
||||
res[0] = strtoul(s, NULL, 0);
|
||||
res[1] = strtoul(t + 1, NULL, 0);
|
||||
res[0] = clamp(strtoul(s, NULL, 0), 64, MAX_SCREEN_WIDTH);
|
||||
res[1] = clamp(strtoul(t + 1, NULL, 0), 64, MAX_SCREEN_HEIGHT);
|
||||
}
|
||||
|
||||
static void InitializeDynamicVariables(void)
|
||||
|
Loading…
Reference in New Issue
Block a user