Skip to content

Commit

Permalink
Fix clipping rectangle of GUITable row highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
kahrl committed Jan 10, 2015
1 parent 3b16103 commit b7c0e4b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/guiTable.cpp
Expand Up @@ -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
Expand Down

0 comments on commit b7c0e4b

Please sign in to comment.