Unwrangle Drawing.h and Paint.h (#25706)

* Drop Drawing.h include from Paint.h

* Split off RenderTarget to its own header/unit

* Move FilterPaletteID to its own header
This commit is contained in:
Aaron van Geffen authored and GitHub committed 2025-12-26 12:58:33 +01:00
1 parent 344dd7aac9
commit 8a0a655025
183 files changed
+790 -648

No files matched your search

+2 -2
View File
@@ -492,7 +492,7 @@ namespace OpenRCT2::Ui::Windows
invalidateWidget(WIDX_SCROLL);
}
void onDraw(RenderTarget& rt) override
void onDraw(Drawing::RenderTarget& rt) override
{
WindowDrawWidgets(*this, rt);
@@ -510,7 +510,7 @@ namespace OpenRCT2::Ui::Windows
DrawTextEllipsised(rt, screenPos + ScreenCoordsXY{ 0, 29 }, kWindowSize.width - 5, STR_BLACK_STRING, ft);
}
void onScrollDraw(const int32_t scrollIndex, RenderTarget& rt) override
void onScrollDraw(const int32_t scrollIndex, Drawing::RenderTarget& rt) override
{
auto rtCoords = ScreenCoordsXY{ rt.x, rt.y };
Rectangle::fill(