From 02a4b49df196471bd56cd73b46891074cbdfdc34 Mon Sep 17 00:00:00 2001 From: hrydgard Date: Thu, 5 Mar 2009 22:35:06 +0000 Subject: just some compiler warning cleanup. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2562 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/VideoCommon/Src/VideoCommon.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Source/Core/VideoCommon') 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 -- cgit v1.2.3