diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-03-19 16:34:36 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-03-19 16:34:36 +0300 |
commit | 66effbbdc1ed9ead3727ccfe36e9cde3eca16a3c (patch) | |
tree | 2762b39c725fe45776968cfebabda097a2390376 | |
parent | 15c16a944c5724080365800645e5f564887b942f (diff) | |
download | mv-66effbbdc1ed9ead3727ccfe36e9cde3eca16a3c.tar.gz mv-66effbbdc1ed9ead3727ccfe36e9cde3eca16a3c.tar.bz2 mv-66effbbdc1ed9ead3727ccfe36e9cde3eca16a3c.tar.xz mv-66effbbdc1ed9ead3727ccfe36e9cde3eca16a3c.zip |
Improve cliprect.
-rw-r--r-- | src/gui/cliprect.cpp | 13 |
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; } |