1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Fix width calculation in asset packs window (#22097)

This commit is contained in:
Aaron van Geffen
2024-05-24 23:27:09 +02:00
committed by GitHub
parent f5834d67db
commit e8a009bb3c

View File

@@ -238,7 +238,7 @@ static Widget WindowAssetPacksWidgets[] = {
private:
void PaintItem(DrawPixelInfo& dpi, int32_t y, Formatter& ft, bool isChecked, bool isSelected, bool isHighlighted)
{
auto listWidth = dpi.width - 1;
auto listWidth = widgets[WIDX_LIST].right - widgets[WIDX_LIST].left;
auto stringId = STR_BLACK_STRING;
auto fillRectangle = ScreenRect{ { 0, y }, { listWidth, y + ItemHeight - 1 } };
if (isSelected)