Fix List widget rendering glitch
This commit is contained in:
parent
94400b12d6
commit
418901b0de
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user