MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / screenModeDropdown

Function screenModeDropdown

src/OpenLoco/src/Ui/Windows/Options.cpp:346–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344 }
345
346 static void screenModeDropdown([[maybe_unused]] const Window& self, int16_t selection)
347 {
348 if (selection == -1)
349 {
350 return;
351 }
352
353 auto new_mode = static_cast<Config::ScreenMode>(selection);
354 if (new_mode == Config::get().display.mode)
355 {
356 return;
357 }
358
359#if !(defined(__APPLE__) && defined(__MACH__))
360 Ui::setDisplayMode(new_mode);
361#endif
362 }
363
364#pragma mark - Resolution dropdown
365

Callers 1

onDropdownFunction · 0.85

Calls 2

setDisplayModeFunction · 0.85
getFunction · 0.50

Tested by

no test coverage detected