summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoCommon')
-rw-r--r--Source/Core/VideoCommon/Src/VideoCommon.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/Src/VideoCommon.h b/Source/Core/VideoCommon/Src/VideoCommon.h
index 8082da16b5..16344e4a9a 100644
--- a/Source/Core/VideoCommon/Src/VideoCommon.h
+++ b/Source/Core/VideoCommon/Src/VideoCommon.h
@@ -97,7 +97,13 @@ inline float Memory_Read_Float(u32 _uAddress)
struct TRectangle
{
- int left, top, right, bottom;
+ int left;
+ int top;
+ int right;
+ int bottom;
+
+ int GetWidth() const { return right - left; }
+ int GetHeight() const { return bottom - top; }
};
// Logging