Fixed frame scissor test

This commit is contained in:
2014-06-04 00:46:03 +02:00
parent 0addc672b4
commit 397188b855
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -132,7 +132,11 @@ public:
Rectangle AbsoluteRectangle()
{
int left = Left();
if (m_Parent)
left = std::max(left, m_Parent->Left());
int top = Top();
if (m_Parent)
top = std::max(top, m_Parent->Top());
int width = Right() - left;
int height = Bottom() - top;
return Rectangle(left, top, width, height);