From 75be47400573fda26ea5cf089960842861b6341e Mon Sep 17 00:00:00 2001 From: pvdk Date: Sat, 16 Mar 2013 13:45:23 +0100 Subject: [PATCH] Use the resolution QRegExp cap() instead of converting ints back and forth --- apps/launcher/graphicspage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/launcher/graphicspage.cpp b/apps/launcher/graphicspage.cpp index 4fde1aab05..700ba3db9c 100644 --- a/apps/launcher/graphicspage.cpp +++ b/apps/launcher/graphicspage.cpp @@ -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 + ")");