QTfrontend/hwform.cpp
changeset 8354 c25bee85d6f8
parent 8346 3443e0de2c9d
child 8357 d7bef04c99d4
equal deleted inserted replaced
8352:ab7f22530ae0 8354:c25bee85d6f8
  1881 #ifdef Q_WS_WIN
  1881 #ifdef Q_WS_WIN
  1882     prefix = prefix.replace("/","\\");
  1882     prefix = prefix.replace("/","\\");
  1883     userPrefix = userPrefix.replace("/","\\");
  1883     userPrefix = userPrefix.replace("/","\\");
  1884 #endif
  1884 #endif
  1885 
  1885 
  1886     QRect resolution = config->vid_Resolution();
  1886     std::pair<QRect, QRect> resolutions = config->vid_ResolutionPair();
  1887     return QString("--prefix " + prefix
  1887     return QString("--prefix " + prefix
  1888                    + " --user-prefix " + userPrefix
  1888                    + " --user-prefix " + userPrefix
  1889                    + " --width " + QString::number(resolution.width())
  1889                    + " --fullscreen-width " + QString::number(resolutions.first.width())
  1890                    + " --height " + QString::number(resolution.height())
  1890                    + " --fullscreen-height " + QString::number(resolutions.first.height())
       
  1891                    + " --width " + QString::number(resolutions.second.width())
       
  1892                    + " --height " + QString::number(resolutions.second.height())
  1891                    + " --volume " + QString::number(config->volume())
  1893                    + " --volume " + QString::number(config->volume())
  1892                    + (config->isMusicEnabled() ? "" : " --nomusic")
  1894                    + (config->isMusicEnabled() ? "" : " --nomusic")
  1893                    + (config->isSoundEnabled() ? "" : " --nosound")
  1895                    + (config->isSoundEnabled() ? "" : " --nosound")
  1894                    + " --locale " + config->language() + ".txt"
  1896                    + " --locale " + config->language() + ".txt"
  1895                    + (config->vid_Fullscreen() ? " --fullscreen" : "")
  1897                    + (config->vid_Fullscreen() ? " --fullscreen" : "")