1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 13:33:02 +01:00

Move WindowInvalidate and WidgetInvalidate families into WindowManager (#23692)

* Move WindowInvalidate and WidgetInvalidate families into WindowManager

* Use InvalidateWidget shorthand in more places

* Cut back on UiContext includes

* Cut back on Window.h includes

* Remove outdated parameter comments
This commit is contained in:
Aaron van Geffen
2025-01-25 13:46:08 +01:00
committed by GitHub
parent da0a772e4d
commit cf448753c1
127 changed files with 554 additions and 499 deletions

View File

@@ -390,7 +390,7 @@ namespace OpenRCT2::Ui::Windows
{
selected_list_item = index;
}
WidgetInvalidate(*this, WIDX_SCROLL);
InvalidateWidget(WIDX_SCROLL);
}
public:
@@ -443,7 +443,7 @@ namespace OpenRCT2::Ui::Windows
if (!WidgetIsHighlighted(*this, WIDX_SCROLL))
{
_highlightedIndex = -1;
WidgetInvalidate(*this, WIDX_SCROLL);
InvalidateWidget(WIDX_SCROLL);
}
#ifndef DISABLE_HTTP
@@ -486,7 +486,7 @@ namespace OpenRCT2::Ui::Windows
else
_highlightedIndex = selectedItem;
WidgetInvalidate(*this, WIDX_SCROLL);
InvalidateWidget(WIDX_SCROLL);
}
void OnDraw(DrawPixelInfo& dpi) override