mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2026-05-06 07:56:46 -04:00
Fix entrance dropdown caption not being painted (#26187)
This commit is contained in:
@@ -5021,14 +5021,12 @@ namespace OpenRCT2::Ui::Windows
|
||||
|
||||
const auto clipScreenPos = windowPos + ScreenCoordsXY{ widget.left + 1, widget.top + 1 };
|
||||
RenderTarget clippedRT;
|
||||
if (!ClipRenderTarget(clippedRT, rt, clipScreenPos, widget.width() - 1, widget.height() - 1))
|
||||
if (ClipRenderTarget(clippedRT, rt, clipScreenPos, widget.width() - 1, widget.height() - 1))
|
||||
{
|
||||
return;
|
||||
GfxClear(clippedRT, PaletteIndex::pi12);
|
||||
ColourOnDrawEntrancePreview(clippedRT, ride, widget);
|
||||
}
|
||||
|
||||
GfxClear(clippedRT, PaletteIndex::pi12);
|
||||
|
||||
ColourOnDrawEntrancePreview(clippedRT, ride, widget);
|
||||
colourOnDrawEntranceDropdownCaption(rt, ride);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user