MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / ProcessHighlightedInvalidations

Method ProcessHighlightedInvalidations

src/window.cpp:3262–3269  ·  view source on GitHub ↗

* Process all invalidation of highlighted widgets. */

Source from the content-addressed store, hash-verified

3260 * Process all invalidation of highlighted widgets.
3261 */
3262void Window::ProcessHighlightedInvalidations()
3263{
3264 if (!this->flags.Test(WindowFlag::Highlighted)) return;
3265
3266 for (const auto &pair : this->widget_lookup) {
3267 if (pair.second->IsHighlighted()) pair.second->SetDirty(this);
3268 }
3269}
3270
3271/**
3272 * Mark window data of the window of a given class and specific window number as invalid (in need of re-computing)

Callers 1

UpdateWindowsFunction · 0.80

Calls 3

TestMethod · 0.80
IsHighlightedMethod · 0.45
SetDirtyMethod · 0.45

Tested by

no test coverage detected