summaryrefslogtreecommitdiff
path: root/src/render/graphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-02-22 14:59:26 +0300
committerAndrei Karas <akaras@inbox.ru>2014-02-22 14:59:26 +0300
commit63f0b730767b1185dc33f8892068d697e26a09bb (patch)
tree9f3bcba891cb747b2b4696651b8df464a8a1fc86 /src/render/graphics.cpp
parent48646db55005a0da079bd2c945875dc8225e2f86 (diff)
downloadplus-63f0b730767b1185dc33f8892068d697e26a09bb.tar.gz
plus-63f0b730767b1185dc33f8892068d697e26a09bb.tar.bz2
plus-63f0b730767b1185dc33f8892068d697e26a09bb.tar.xz
plus-63f0b730767b1185dc33f8892068d697e26a09bb.zip
Move Rectangle and ClipRectangle into gui directory.
Diffstat (limited to 'src/render/graphics.cpp')
-rw-r--r--src/render/graphics.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/render/graphics.cpp b/src/render/graphics.cpp
index 653b4d4c0..bac987695 100644
--- a/src/render/graphics.cpp
+++ b/src/render/graphics.cpp
@@ -547,21 +547,21 @@ void Graphics::setWindowSize(const int width A_UNUSED,
#endif
}
-bool Graphics::pushClipArea(gcn::Rectangle area)
+bool Graphics::pushClipArea(Rectangle area)
{
// Ignore area with a negate width or height
// by simple pushing an empty clip area
// to the stack.
if (area.width < 0 || area.height < 0)
{
- gcn::ClipRectangle carea;
+ ClipRectangle carea;
mClipStack.push(carea);
return true;
}
if (mClipStack.empty())
{
- gcn::ClipRectangle carea;
+ ClipRectangle carea;
carea.x = area.x;
carea.y = area.y;
carea.width = area.width;
@@ -572,8 +572,8 @@ bool Graphics::pushClipArea(gcn::Rectangle area)
return true;
}
- const gcn::ClipRectangle &top = mClipStack.top();
- gcn::ClipRectangle carea;
+ const ClipRectangle &top = mClipStack.top();
+ ClipRectangle carea;
carea = area;
carea.xOffset = top.xOffset + carea.x;
carea.yOffset = top.yOffset + carea.y;
@@ -618,7 +618,7 @@ void Graphics::popClipArea()
mClipStack.pop();
}
-const gcn::ClipRectangle *Graphics::getCurrentClipArea() const
+const ClipRectangle *Graphics::getCurrentClipArea() const
{
if (mClipStack.empty())
return nullptr;