diff options
| author | degasus <wickmarkus@web.de> | 2012-12-25 12:39:00 +0100 |
|---|---|---|
| committer | degasus <wickmarkus@web.de> | 2012-12-25 12:39:00 +0100 |
| commit | bff0faea2d3afbd3fc9d19f9449f2c31d64a5e3e (patch) | |
| tree | 1b7262148633924c53e066a354c4b2a1a46d459d /Source/Core/Common | |
| parent | b3714f4874681b463c48f5aa96e3f89274f94aac (diff) | |
| parent | 399a6af66de69ffaf54d779441b57b05aa2b24e0 (diff) | |
Merge branch 'immediate-removal'
Conflicts:
Source/Plugins/Plugin_VideoOGL/Src/Render.cpp
Diffstat (limited to 'Source/Core/Common')
| -rw-r--r-- | Source/Core/Common/Src/MathUtil.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/Common/Src/MathUtil.h b/Source/Core/Common/Src/MathUtil.h index a6290ff602..c5f613ada1 100644 --- a/Source/Core/Common/Src/MathUtil.h +++ b/Source/Core/Common/Src/MathUtil.h @@ -117,6 +117,8 @@ struct Rectangle Rectangle(T theLeft, T theTop, T theRight, T theBottom) : left(theLeft), top(theTop), right(theRight), bottom(theBottom) { } + + bool operator==(const Rectangle& r) { return left==r.left && top==r.top && right==r.right && bottom==r.bottom; } T GetWidth() const { return abs(right - left); } T GetHeight() const { return abs(bottom - top); } |
