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

Function resolutionDropdown

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

0x004C00F4

Source from the content-addressed store, hash-verified

384
385 // 0x004C00F4
386 static void resolutionDropdown([[maybe_unused]] const Window& self, int16_t index)
387 {
388 if (index == -1)
389 {
390 return;
391 }
392 std::vector<Resolution> resolutions = getFullscreenResolutions();
393 Ui::setDisplayMode(Config::ScreenMode::fullscreen, { resolutions[index].width, resolutions[index].height });
394 }
395
396#pragma mark - Frame limit dropdown
397

Callers 1

onDropdownFunction · 0.85

Calls 2

getFullscreenResolutionsFunction · 0.85
setDisplayModeFunction · 0.85

Tested by

no test coverage detected