| 185 | } |
| 186 | |
| 187 | void LauncherWindow::setupScreenModes() |
| 188 | { |
| 189 | constexpr std::array<std::string_view, 3> screen_modes = {"windowed", "fullscreen", |
| 190 | "borderless"}; |
| 191 | |
| 192 | auto &comboBox = *ui->screenModeBox; |
| 193 | comboBox.clear(); |
| 194 | int index = 0; |
| 195 | for (const auto &option : screen_modes) |
| 196 | { |
| 197 | comboBox.addItem(option.data()); |
| 198 | if (option == Options::screenModeOption.get()) |
| 199 | { |
| 200 | comboBox.setCurrentIndex(index); |
| 201 | } |
| 202 | ++index; |
| 203 | } |
| 204 | }; |
| 205 | |
| 206 | void LauncherWindow::setupDisplayNum() |
| 207 | { |