summaryrefslogtreecommitdiff
path: root/src/render/graphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-02-24 14:01:32 +0300
committerAndrei Karas <akaras@inbox.ru>2014-02-24 21:18:57 +0300
commit0a8b5d325f2d2c326b6da27399711b198417a499 (patch)
tree9e89aa7610f3f74ef9df53f6afce6655fc95ab07 /src/render/graphics.cpp
parent779b65f15d3350b2d95a095e24a90526c64dcecb (diff)
downloadmanaverse-0a8b5d325f2d2c326b6da27399711b198417a499.tar.gz
manaverse-0a8b5d325f2d2c326b6da27399711b198417a499.tar.bz2
manaverse-0a8b5d325f2d2c326b6da27399711b198417a499.tar.xz
manaverse-0a8b5d325f2d2c326b6da27399711b198417a499.zip
Rename Rectangle into Rect.
Rename ClipRectangle into ClipRect.
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 bac987695..17f444eb8 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(Rectangle area)
+bool Graphics::pushClipArea(Rect 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)
{
- ClipRectangle carea;
+ ClipRect carea;
mClipStack.push(carea);
return true;
}
if (mClipStack.empty())
{
- ClipRectangle carea;
+ ClipRect carea;
carea.x = area.x;
carea.y = area.y;
carea.width = area.width;
@@ -572,8 +572,8 @@ bool Graphics::pushClipArea(Rectangle area)
return true;
}
- const ClipRectangle &top = mClipStack.top();
- ClipRectangle carea;
+ const ClipRect &top = mClipStack.top();
+ ClipRect 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 ClipRectangle *Graphics::getCurrentClipArea() const
+const ClipRect *Graphics::getCurrentClipArea() const
{
if (mClipStack.empty())
return nullptr;