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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user