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

Function width

src/OpenLoco/src/Ui.cpp:181–185  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

179
180 // Returns the width of the game screen, which is scaled by the window scale factor.
181 int32_t width()
182 {
183 const auto& screenInfo = Gfx::getDrawingEngine().getScreenInfo();
184 return screenInfo.width;
185 }
186
187 // Returns the height of the game screen, which is scaled by the window scale factor.
188 int32_t height()

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
windowFitsWithinSpaceFunction · 0.85
createWindowOnScreenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected