diff --git a/apps/launcher/graphicspage.cpp b/apps/launcher/graphicspage.cpp index ad3b2493a..b185b3cd2 100644 --- a/apps/launcher/graphicspage.cpp +++ b/apps/launcher/graphicspage.cpp @@ -155,7 +155,7 @@ bool GraphicsPage::setupSDL() { int displays = SDL_GetNumVideoDisplays(); - if(displays < 0) + if (displays < 0) { qDebug() << "SDL_GetNumVideoDisplays failed: " << QString::fromStdString(SDL_GetError()); return false; @@ -235,7 +235,7 @@ void GraphicsPage::saveSettings() } QRegExp screenRe(QString(".*(\\d+)")); - if(screenRe.exactMatch(screenComboBox->currentText())) { + if (screenRe.exactMatch(screenComboBox->currentText())) { mGraphicsSettings.setValue(QString("Video/screen"), screenRe.cap(1)); } } @@ -279,7 +279,7 @@ QStringList GraphicsPage::getAvailableResolutions(int screen) SDL_DisplayMode mode; int modeIndex, modes = SDL_GetNumDisplayModes(screen); - if(modes < 0) + if (modes < 0) { qDebug() << "SDL_GetNumDisplayModes failed: " << QString::fromStdString(SDL_GetError()); return result; @@ -351,7 +351,7 @@ void GraphicsPage::rendererChanged(const QString &renderer) void GraphicsPage::screenChanged(const QString &screen) { QRegExp screenRe(QString(".*(\\d+)")); - if(screenRe.exactMatch(screen)) { + if (screenRe.exactMatch(screen)) { resolutionComboBox->clear(); resolutionComboBox->addItems(getAvailableResolutions(screenRe.cap(1).toInt() - 1)); } diff --git a/apps/launcher/main.cpp b/apps/launcher/main.cpp index c6df5a909..5537bdb1a 100644 --- a/apps/launcher/main.cpp +++ b/apps/launcher/main.cpp @@ -12,7 +12,7 @@ int main(int argc, char *argv[]) if (SDL_Init(SDL_INIT_VIDEO) != 0) { qDebug() << "SDL_Init failed: " << QString::fromStdString(SDL_GetError()); - return false; + return 0; } QApplication app(argc, argv);