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

Function centerWindowOnDisplay

src/OpenLoco/src/Ui.cpp:162–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160 }
161
162 static void centerWindowOnDisplay(SDL_Window* window, uint32_t displayIndex, int32_t width, int32_t height)
163 {
164 const auto pos = getCenteredPositionOnDisplay(displayIndex, width, height);
165 SDL_SetWindowPosition(window, pos.x, pos.y);
166 }
167
168#ifdef _WIN32
169 void* hwnd()

Callers 1

setDisplayModeFunction · 0.85

Calls 1

Tested by

no test coverage detected