| 204 | }; |
| 205 | |
| 206 | void LauncherWindow::setupDisplayNum() |
| 207 | { |
| 208 | constexpr int MAX_DISPLAYS = 4; |
| 209 | auto &comboBox = *ui->displayNumBox; |
| 210 | comboBox.clear(); |
| 211 | |
| 212 | for (int i = 0; i < MAX_DISPLAYS; ++i) |
| 213 | { |
| 214 | comboBox.addItem(QString("Display #%1").arg(i)); |
| 215 | } |
| 216 | |
| 217 | int curDisplayValue = Options::screenDisplayNumberOption.get(); |
| 218 | if (curDisplayValue < MAX_DISPLAYS) |
| 219 | { |
| 220 | comboBox.setCurrentIndex(curDisplayValue); |
| 221 | } |
| 222 | } |
| 223 | |
| 224 | enum class ScalingType |
| 225 | { |