Fix List widget rendering glitch

This commit is contained in:
auria.mg 2018-08-26 21:07:02 -04:00
parent 94400b12d6
commit 418901b0de

View File

@ -573,7 +573,10 @@ void CGUISTKListBox::draw()
} }
//Position back to inital pos //Position back to inital pos
if (IconBank && (Items[i].m_contents[x].m_icon > -1)) if (IconBank && (Items[i].m_contents[x].m_icon > -1))
textRect.UpperLeftCorner.X -= ItemsIconWidth+6; textRect.UpperLeftCorner.X -= ItemsIconWidth;
textRect.UpperLeftCorner.X -= 6;
//Calculate new beginning //Calculate new beginning
textRect.UpperLeftCorner.X += Items[i].m_contents[x].m_proportion * part_size; textRect.UpperLeftCorner.X += Items[i].m_contents[x].m_proportion * part_size;
} }