MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / setupScreenModes

Method setupScreenModes

tools/launcher/launcherwindow.cpp:187–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187void 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
206void LauncherWindow::setupDisplayNum()
207{

Callers

nothing calls this directly

Calls 3

clearMethod · 0.45
addItemMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected