Fix clipping rectangle of GUITable row highlight
parent
3b16103ca6
commit
b7c0e4b333
|
@ -638,10 +638,11 @@ void GUITable::draw()
|
||||||
client_clip.UpperLeftCorner.Y += 1;
|
client_clip.UpperLeftCorner.Y += 1;
|
||||||
client_clip.UpperLeftCorner.X += 1;
|
client_clip.UpperLeftCorner.X += 1;
|
||||||
client_clip.LowerRightCorner.Y -= 1;
|
client_clip.LowerRightCorner.Y -= 1;
|
||||||
client_clip.LowerRightCorner.X -=
|
client_clip.LowerRightCorner.X -= 1;
|
||||||
m_scrollbar->isVisible() ?
|
if (m_scrollbar->isVisible()) {
|
||||||
skin->getSize(gui::EGDS_SCROLLBAR_SIZE) :
|
client_clip.LowerRightCorner.X =
|
||||||
1;
|
m_scrollbar->getAbsolutePosition().UpperLeftCorner.X;
|
||||||
|
}
|
||||||
client_clip.clipAgainst(AbsoluteClippingRect);
|
client_clip.clipAgainst(AbsoluteClippingRect);
|
||||||
|
|
||||||
// draw visible rows
|
// draw visible rows
|
||||||
|
|
Loading…
Reference in New Issue