summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-03-19 16:34:36 +0300
committerAndrei Karas <akaras@inbox.ru>2014-03-19 16:34:36 +0300
commit66effbbdc1ed9ead3727ccfe36e9cde3eca16a3c (patch)
tree2762b39c725fe45776968cfebabda097a2390376 /src/gui
parent15c16a944c5724080365800645e5f564887b942f (diff)
downloadmanaplus-66effbbdc1ed9ead3727ccfe36e9cde3eca16a3c.tar.gz
manaplus-66effbbdc1ed9ead3727ccfe36e9cde3eca16a3c.tar.bz2
manaplus-66effbbdc1ed9ead3727ccfe36e9cde3eca16a3c.tar.xz
manaplus-66effbbdc1ed9ead3727ccfe36e9cde3eca16a3c.zip
Improve cliprect.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/cliprect.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/gui/cliprect.cpp b/src/gui/cliprect.cpp
index 5255a4c98..5f71c8249 100644
--- a/src/gui/cliprect.cpp
+++ b/src/gui/cliprect.cpp
@@ -70,27 +70,19 @@
#include "debug.h"
ClipRect::ClipRect() :
- Rect(),
+ Rect(0, 0, 0, 0),
xOffset(0),
yOffset(0)
{
- x = 0;
- y = 0;
- width = 0;
- height = 0;
}
ClipRect::ClipRect(const int x0, const int y0,
const int width0, const int height0,
const int xOffset0, const int yOffset0) :
- Rect(),
+ Rect(x0, y0, width0, height0),
xOffset(xOffset0),
yOffset(yOffset0)
{
- x = x0;
- y = y0;
- width = width0;
- height = height0;
}
const ClipRect& ClipRect::operator=(const Rect& other)
@@ -99,6 +91,5 @@ const ClipRect& ClipRect::operator=(const Rect& other)
y = other.y;
width = other.width;
height = other.height;
-
return *this;
}