diff options
| author | Einar Johan Trøan Sømåen | 2012-07-09 12:27:06 +0200 |
|---|---|---|
| committer | Einar Johan Trøan Sømåen | 2012-07-09 12:27:06 +0200 |
| commit | 07cebdbf2b70e02b12d32880d23dbe293ab12358 (patch) | |
| tree | d60a66f89c8bd1e1749010fa3aa41d2e5459f5ad /engines/wintermute/utils | |
| parent | 2959065e49390ab1da0b00a277a464d991ff10ad (diff) | |
| download | scummvm-rg350-07cebdbf2b70e02b12d32880d23dbe293ab12358.tar.gz scummvm-rg350-07cebdbf2b70e02b12d32880d23dbe293ab12358.tar.bz2 scummvm-rg350-07cebdbf2b70e02b12d32880d23dbe293ab12358.zip | |
WINTERMUTE: Change usage of Common::Rect to our own 32-bit variant.
Diffstat (limited to 'engines/wintermute/utils')
| -rw-r--r-- | engines/wintermute/utils/utils.cpp | 2 | ||||
| -rw-r--r-- | engines/wintermute/utils/utils.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/engines/wintermute/utils/utils.cpp b/engines/wintermute/utils/utils.cpp index ae64cd0686..9efc7b8935 100644 --- a/engines/wintermute/utils/utils.cpp +++ b/engines/wintermute/utils/utils.cpp @@ -45,7 +45,7 @@ static inline unsigned Sqr(int x) { //////////////////////////////////////////////////////////////////////////////////
-void CBUtils::clip(int *destX, int *destY, Common::Rect *srcRect, Common::Rect *destRect) {
+void CBUtils::clip(int *destX, int *destY, Rect32 *srcRect, Rect32 *destRect) {
// If it's partly off the right side of the screen
if (*destX + (srcRect->right - srcRect->left) > destRect->right)
srcRect->right -= *destX + (srcRect->right - srcRect->left) - destRect->right;
diff --git a/engines/wintermute/utils/utils.h b/engines/wintermute/utils/utils.h index e178d35853..d75bb8c550 100644 --- a/engines/wintermute/utils/utils.h +++ b/engines/wintermute/utils/utils.h @@ -30,6 +30,7 @@ #define WINTERMUTE_UTILS_H
#include "engines/wintermute/wintypes.h"
+#include "engines/wintermute/Math/Rect32.h"
namespace WinterMute {
@@ -37,7 +38,7 @@ class CBGame; class CBUtils {
public:
- static void clip(int *destX, int *destY, Common::Rect *srcRect, Common::Rect *destRect);
+ static void clip(int *destX, int *destY, Rect32 *srcRect, Rect32 *destRect);
static void swap(int *a, int *b);
static bool strBeginsI(const char *string, const char *fragment);
static float normalizeAngle(float angle);
|
