forked from rosebudai/OpenRCT2-Web
Fix width calculation in asset packs window (#22097)
This commit is contained in:
1 parent
f5834d67db
commit
e8a009bb3c
1 file changed
+1
-1
@@ -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