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

Function getDesktopResolution

src/OpenLoco/src/Ui.cpp:556–560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

554 }
555
556 Config::Resolution getDesktopResolution()
557 {
558 const auto displayIndex = _window != nullptr ? getDisplayIndex(SDL_GetDisplayForWindow(_window)) : Config::get().display.index;
559 return getDesktopResolution(displayIndex);
560 }
561
562 static Config::Resolution getDesktopResolution(uint32_t displayIndex)
563 {

Callers 3

startFunction · 0.85

Calls 4

getDisplayIndexFunction · 0.85
getDisplayIdFromIndexFunction · 0.85
errorFunction · 0.85
getFunction · 0.70

Tested by

no test coverage detected