1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 22:53:50 +00:00

Use the resolution QRegExp cap() instead of converting ints back and forth

This commit is contained in:
pvdk 2013-03-16 13:45:23 +01:00
parent d1860f2d6c
commit 75be474005

View file

@ -268,7 +268,7 @@ QStringList GraphicsPage::getAvailableResolutions(Ogre::RenderSystem *renderer)
int height = resolutionRe.cap(2).toInt(); int height = resolutionRe.cap(2).toInt();
QString aspect = getAspect(width, height); QString aspect = getAspect(width, height);
QString cleanRes = QString::number(width) + QString(" x ") + QString::number(height); QString cleanRes = resolutionRe.cap(1) + QString(" x ") + resolutionRe.cap(2);
if (aspect == QLatin1String("16:9") || aspect == QLatin1String("16:10")) { if (aspect == QLatin1String("16:9") || aspect == QLatin1String("16:10")) {
cleanRes.append(tr("\t(Wide ") + aspect + ")"); cleanRes.append(tr("\t(Wide ") + aspect + ")");