Fix for Issue #64 for GuiTabBookCtrl rendering

This commit is contained in:
David Wyand 2012-10-04 17:36:15 -04:00
parent 59e7229088
commit b211edb5e2

View file

@ -496,7 +496,9 @@ void GuiTabBookCtrl::onRender(Point2I offset, const RectI &updateRect)
// Clip to tab area
RectI savedClipRect = GFX->getClipRect();
GFX->setClipRect( tabRect );
RectI clippedTabRect = tabRect;
clippedTabRect.intersect( savedClipRect );
GFX->setClipRect( clippedTabRect );
// Render our tabs
renderTabs( offset, tabRect );