diff options
Diffstat (limited to 'vcl/opengl/PackedTextureAtlas.cxx')
-rw-r--r-- | vcl/opengl/PackedTextureAtlas.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/vcl/opengl/PackedTextureAtlas.cxx b/vcl/opengl/PackedTextureAtlas.cxx index bad17587762d..dc6d0db4c76f 100644 --- a/vcl/opengl/PackedTextureAtlas.cxx +++ b/vcl/opengl/PackedTextureAtlas.cxx @@ -19,26 +19,26 @@ struct Node { - Rectangle mRectangle; + tools::Rectangle mRectangle; std::unique_ptr<Node> mLeftNode; std::unique_ptr<Node> mRightNode; bool mOccupied; explicit Node(int nWidth, int nHeight); - explicit Node(Rectangle& aRectangle); + explicit Node(tools::Rectangle& aRectangle); bool isLeaf(); Node* insert(int nWidth, int nHeight, int nPadding); }; Node::Node(int nWidth, int nHeight) - : mRectangle(Rectangle(Point(), Size(nWidth, nHeight))) + : mRectangle(tools::Rectangle(Point(), Size(nWidth, nHeight))) , mLeftNode() , mRightNode() , mOccupied(false) {} -Node::Node(Rectangle& aRectangle) +Node::Node(tools::Rectangle& aRectangle) : mRectangle(aRectangle) , mLeftNode() , mRightNode() @@ -83,20 +83,20 @@ Node* Node::insert(int nWidth, int nHeight, int nPadding) int dw = mRectangle.GetWidth() - nWidth; int dh = mRectangle.GetHeight() - nHeight; - Rectangle aLeftRect; - Rectangle aRightRect; + tools::Rectangle aLeftRect; + tools::Rectangle aRightRect; if (dw > dh) { - aLeftRect = Rectangle(Point(mRectangle.Left(), mRectangle.Top()), + aLeftRect = tools::Rectangle(Point(mRectangle.Left(), mRectangle.Top()), Size(nWidth, mRectangle.GetHeight())); - aRightRect = Rectangle(Point(nPadding + mRectangle.Left() + nWidth, mRectangle.Top()), + aRightRect = tools::Rectangle(Point(nPadding + mRectangle.Left() + nWidth, mRectangle.Top()), Size(mRectangle.GetWidth() - nWidth - nPadding, mRectangle.GetHeight())); } else { - aLeftRect = Rectangle(Point(mRectangle.Left(), mRectangle.Top()), + aLeftRect = tools::Rectangle(Point(mRectangle.Left(), mRectangle.Top()), Size(mRectangle.GetWidth(), nHeight)); - aRightRect = Rectangle(Point(mRectangle.Left(), nPadding + mRectangle.Top() + nHeight), + aRightRect = tools::Rectangle(Point(mRectangle.Left(), nPadding + mRectangle.Top() + nHeight), Size(mRectangle.GetWidth(), mRectangle.GetHeight() - nHeight - nPadding)); } |