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/Base/BFrame.cpp | |
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/Base/BFrame.cpp')
-rw-r--r-- | engines/wintermute/Base/BFrame.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/wintermute/Base/BFrame.cpp b/engines/wintermute/Base/BFrame.cpp index 7680671434..a0d7d5a1e0 100644 --- a/engines/wintermute/Base/BFrame.cpp +++ b/engines/wintermute/Base/BFrame.cpp @@ -159,7 +159,7 @@ ERRORCODE CBFrame::loadBuffer(byte *buffer, int lifeTime, bool keepLoaded) { char *params;
int cmd;
CBParser parser(Game);
- Common::Rect rect;
+ Rect32 rect;
int r = 255, g = 255, b = 255;
int ar = 255, ag = 255, ab = 255, alpha = 255;
int hotspotX = 0, hotspotY = 0;
@@ -325,11 +325,11 @@ ERRORCODE CBFrame::loadBuffer(byte *buffer, int lifeTime, bool keepLoaded) { //////////////////////////////////////////////////////////////////////////
-bool CBFrame::getBoundingRect(Common::Rect *rect, int x, int y, float scaleX, float scaleY) {
+bool CBFrame::getBoundingRect(Rect32 *rect, int x, int y, float scaleX, float scaleY) {
if (!rect) return false;
CBPlatform::setRectEmpty(rect);
- Common::Rect subRect;
+ Rect32 subRect;
for (int i = 0; i < _subframes.getSize(); i++) {
_subframes[i]->getBoundingRect(&subRect, x, y, scaleX, scaleY);
|