Browse Source

Fix for Issue #64 for GuiTabBookCtrl rendering

David Wyand 13 years ago
parent
commit
b211edb5e2
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Engine/source/gui/containers/guiTabBookCtrl.cpp

+ 3 - 1
Engine/source/gui/containers/guiTabBookCtrl.cpp

@@ -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 );