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

Function getScrollSize

src/OpenLoco/src/Ui/Windows/MessageWindow.cpp:141–144  ·  view source on GitHub ↗

0x0042A871

Source from the content-addressed store, hash-verified

139
140 // 0x0042A871
141 static void getScrollSize([[maybe_unused]] Window& self, [[maybe_unused]] uint32_t scrollIndex, [[maybe_unused]] int32_t& scrollWidth, int32_t& scrollHeight)
142 {
143 scrollHeight = MessageManager::getNumMessages() * messageHeight;
144 }
145
146 // 0x0042A8B9
147 static void scrollMouseDown(Ui::Window& self, [[maybe_unused]] int16_t x, int16_t y, [[maybe_unused]] uint8_t scrollIndex)

Callers

nothing calls this directly

Calls 1

getNumMessagesFunction · 0.85

Tested by

no test coverage detected