Changeset - r1764:aa01b523f143
[Not reviewed]
master
0 1 0
Darkvater - 19 years ago 2005-05-05 15:22:20
darkvater@openttd.org
(svn r2268) - Fix [ 1195595 ] high resolutions don't work. Clamp all possible inputs of resolutions to the maximum availble
1 file changed with 2 insertions and 2 deletions:
ttd.c
2
2
0 comments (0 inline, 0 general)
ttd.c
Show inline comments
 
@@ -421,8 +421,8 @@ static void ParseResolution(int res[2], 
 
		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)
0 comments (0 inline, 0 general)