src/openttd.cpp
changeset 7922 a7e266f966d9
parent 7849 0a1c0af2c96c
child 7928 63e18de69e50
equal deleted inserted replaced
7921:3437fdd5c0a8 7922:a7e266f966d9
   278 	if (t == NULL) {
   278 	if (t == NULL) {
   279 		ShowInfoF("Invalid resolution '%s'", s);
   279 		ShowInfoF("Invalid resolution '%s'", s);
   280 		return;
   280 		return;
   281 	}
   281 	}
   282 
   282 
   283 	res[0] = clamp(strtoul(s, NULL, 0), 64, MAX_SCREEN_WIDTH);
   283 	res[0] = Clamp(strtoul(s, NULL, 0), 64, MAX_SCREEN_WIDTH);
   284 	res[1] = clamp(strtoul(t + 1, NULL, 0), 64, MAX_SCREEN_HEIGHT);
   284 	res[1] = Clamp(strtoul(t + 1, NULL, 0), 64, MAX_SCREEN_HEIGHT);
   285 }
   285 }
   286 
   286 
   287 static void InitializeDynamicVariables()
   287 static void InitializeDynamicVariables()
   288 {
   288 {
   289 	/* Dynamic stuff needs to be initialized somewhere... */
   289 	/* Dynamic stuff needs to be initialized somewhere... */