MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / InvalidateScroll

Function InvalidateScroll

src/openrct2-ui/input/MouseInput.cpp:1557–1567  ·  view source on GitHub ↗

* * rct2: 0x006E876D */

Source from the content-addressed store, hash-verified

1555 * rct2: 0x006E876D
1556 */
1557 void InvalidateScroll()
1558 {
1559 auto* windowMgr = GetWindowManager();
1560 WindowBase* w = windowMgr->FindByNumber(gPressedWidget.windowClassification, gPressedWidget.windowNumber);
1561 if (w != nullptr)
1562 {
1563 // Reset to basic scroll
1564 w->scrolls[_currentScrollIndex].flags &= 0xFF11;
1565 windowMgr->InvalidateByNumber(gPressedWidget.windowClassification, gPressedWidget.windowNumber);
1566 }
1567 }
1568
1569 /**
1570 * rct2: 0x00406C96

Callers 2

InputScrollContinueFunction · 0.85
InputScrollEndFunction · 0.85

Calls 3

GetWindowManagerFunction · 0.85
InvalidateByNumberMethod · 0.80
FindByNumberMethod · 0.45

Tested by

no test coverage detected