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

Function height

src/OpenLoco/src/Ui.cpp:188–192  ·  view source on GitHub ↗

Returns the height of the game screen, which is scaled by the window scale factor.

Source from the content-addressed store, hash-verified

186
187 // Returns the height of the game screen, which is scaled by the window scale factor.
188 int32_t height()
189 {
190 const auto& screenInfo = Gfx::getDrawingEngine().getScreenInfo();
191 return screenInfo.height;
192 }
193
194 bool isInitialized()
195 {

Callers 15

resizeFunction · 0.85
getResolutionFunction · 0.85
handleInputFunction · 0.85
minimalHandleInputFunction · 0.85
updateBeginFunction · 0.85
updateDisplayAtariFunction · 0.85
updateDisplayNoticeFunction · 0.85
viewportMoveFunction · 0.85
moveInsideScreenEdgesMethod · 0.85
moveToCentreMethod · 0.85
createWindowOnScreenFunction · 0.85
windowFitsOnScreenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected