From d61c12ccfce9a464f38b645ae91ec79cb0071b85 Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Sat, 22 Jun 2013 20:32:11 +0200 Subject: [PATCH] minor cleanup --- apps/launcher/graphicspage.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/launcher/graphicspage.cpp b/apps/launcher/graphicspage.cpp index d9e10e764..157702af4 100644 --- a/apps/launcher/graphicspage.cpp +++ b/apps/launcher/graphicspage.cpp @@ -291,11 +291,11 @@ QStringList GraphicsPage::getAvailableResolutions(Ogre::RenderSystem *renderer) QRect GraphicsPage::getMaximumResolution() { - QRect max, res; - int i, screens = QApplication::desktop()->screenCount(); - for (i = 0; i < screens; i++) + QRect max; + int screens = QApplication::desktop()->screenCount(); + for (int i = 0; i < screens; ++i) { - res = QApplication::desktop()->screenGeometry(i); + QRect res = QApplication::desktop()->screenGeometry(i); if (res.width() > max.width()) max.setWidth(res.width()); if (res.height() > max.height())