mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix clipping rectangle of GUITable row highlight
This commit is contained in:
parent
3b16103ca6
commit
b7c0e4b333
1 changed files with 5 additions and 4 deletions
|
@ -638,10 +638,11 @@ void GUITable::draw()
|
|||
client_clip.UpperLeftCorner.Y += 1;
|
||||
client_clip.UpperLeftCorner.X += 1;
|
||||
client_clip.LowerRightCorner.Y -= 1;
|
||||
client_clip.LowerRightCorner.X -=
|
||||
m_scrollbar->isVisible() ?
|
||||
skin->getSize(gui::EGDS_SCROLLBAR_SIZE) :
|
||||
1;
|
||||
client_clip.LowerRightCorner.X -= 1;
|
||||
if (m_scrollbar->isVisible()) {
|
||||
client_clip.LowerRightCorner.X =
|
||||
m_scrollbar->getAbsolutePosition().UpperLeftCorner.X;
|
||||
}
|
||||
client_clip.clipAgainst(AbsoluteClippingRect);
|
||||
|
||||
// draw visible rows
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue