forked from teamnwah/openmw-tes3coop
Use the resolution QRegExp cap() instead of converting ints back and forth
This commit is contained in:
parent
d1860f2d6c
commit
75be474005
1 changed files with 1 additions and 1 deletions
|
@ -268,7 +268,7 @@ QStringList GraphicsPage::getAvailableResolutions(Ogre::RenderSystem *renderer)
|
|||
int height = resolutionRe.cap(2).toInt();
|
||||
|
||||
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")) {
|
||||
cleanRes.append(tr("\t(Wide ") + aspect + ")");
|
||||
|
|
Loading…
Reference in a new issue