src/strings.cpp
branchNewGRF_ports
changeset 10994 cd9968b6f96b
parent 10991 d8811e327d12
equal deleted inserted replaced
10991:d8811e327d12 10994:cd9968b6f96b
  1211 
  1211 
  1212 	/* resolution size? */
  1212 	/* resolution size? */
  1213 	if (IsInsideMM(ind, (SPECSTR_RESOLUTION_START - 0x70E4), (SPECSTR_RESOLUTION_END - 0x70E4) + 1)) {
  1213 	if (IsInsideMM(ind, (SPECSTR_RESOLUTION_START - 0x70E4), (SPECSTR_RESOLUTION_END - 0x70E4) + 1)) {
  1214 		int i = ind - (SPECSTR_RESOLUTION_START - 0x70E4);
  1214 		int i = ind - (SPECSTR_RESOLUTION_START - 0x70E4);
  1215 		buff += snprintf(
  1215 		buff += snprintf(
  1216 			buff, last - buff + 1, "%dx%d", _resolutions[i][0], _resolutions[i][1]
  1216 			buff, last - buff + 1, "%dx%d", _resolutions[i].width, _resolutions[i].height
  1217 		);
  1217 		);
  1218 		return buff;
  1218 		return buff;
  1219 	}
  1219 	}
  1220 
  1220 
  1221 	/* screenshot format name? */
  1221 	/* screenshot format name? */