2
0
Эх сурвалжийг харах

Fix for Issue #64 for GuiTabBookCtrl rendering

David Wyand 13 жил өмнө
parent
commit
b211edb5e2

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