src/gfx.cpp
changeset 10983 e734f891d1f6
parent 10969 e5fd50b81dc7
child 11092 e4fce2b3cded
equal deleted inserted replaced
10982:e8358ed0f98e 10983:e734f891d1f6
  1311 		DEBUG(driver, 0, "Could not find a suitable fullscreen resolution");
  1311 		DEBUG(driver, 0, "Could not find a suitable fullscreen resolution");
  1312 	}
  1312 	}
  1313 	return result;
  1313 	return result;
  1314 }
  1314 }
  1315 
  1315 
  1316 static int CDECL compare_res(const uint16 *pa, const uint16 *pb)
  1316 static int CDECL compare_res(const Dimension *pa, const Dimension *pb)
  1317 {
  1317 {
  1318 	int x = pa[0] - pb[0];
  1318 	int x = pa->width - pb->width;
  1319 	if (x != 0) return x;
  1319 	if (x != 0) return x;
  1320 	return pa[1] - pb[1];
  1320 	return pa->height - pb->height;
  1321 }
  1321 }
  1322 
  1322 
  1323 void SortResolutions(int count)
  1323 void SortResolutions(int count)
  1324 {
  1324 {
  1325 	QSortT((uint16*)_resolutions, count, compare_res);
  1325 	QSortT(_resolutions, count, &compare_res);
  1326 }
  1326 }