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