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

Function invalidateWidget

src/OpenLoco/src/Ui/WindowManager.cpp:327–352  ·  view source on GitHub ↗

0x004CB966

Source from the content-addressed store, hash-verified

325
326 // 0x004CB966
327 void invalidateWidget(WindowType type, WindowNumber_t number, WidgetIndex_t widgetIndex)
328 {
329 for (auto&& w : _windows)
330 {
331 if (w.type != type)
332 {
333 continue;
334 }
335
336 if (w.number != number)
337 {
338 continue;
339 }
340
341 auto widget = w.widgets[widgetIndex];
342
343 if (widget.left != -2)
344 {
345 Gfx::invalidateRegion(
346 w.x + widget.left,
347 w.y + widget.top,
348 w.x + widget.right + 1,
349 w.y + widget.bottom + 1);
350 }
351 }
352 }
353
354 // 0x004C9984
355 void invalidateAllWindowsAfterInput()

Callers 15

toolCancelFunction · 0.85
horizontalFollowFunction · 0.85
verticalFollowFunction · 0.85
horizontalDragFollowFunction · 0.85
verticalDragFollowFunction · 0.85
hButtonLeftFunction · 0.85
hButtonRightFunction · 0.85
hTrackLeftFunction · 0.85
hTrackRightFunction · 0.85
verticalNudgeUpFunction · 0.85
verticalNudgeDownFunction · 0.85
vTrackTopFunction · 0.85

Calls 1

invalidateRegionFunction · 0.85

Tested by

no test coverage detected