diff options
author | Benjamin Haisch | 2008-05-12 22:28:52 +0000 |
---|---|---|
committer | Benjamin Haisch | 2008-05-12 22:28:52 +0000 |
commit | 16ac1bcebf790effb6dc87636bfbdfce12f1a01b (patch) | |
tree | b255d21af5f4fb9126c90d08142f91e431949bf1 /engines/made/screen.h | |
parent | 6b5709be142f48a124d86e6af80ff31a4c404fc7 (diff) | |
download | scummvm-rg350-16ac1bcebf790effb6dc87636bfbdfce12f1a01b.tar.gz scummvm-rg350-16ac1bcebf790effb6dc87636bfbdfce12f1a01b.tar.bz2 scummvm-rg350-16ac1bcebf790effb6dc87636bfbdfce12f1a01b.zip |
Changed clipping rectangles to use Common::Rect (thanks to [md5]/thebluegr)
svn-id: r32077
Diffstat (limited to 'engines/made/screen.h')
-rw-r--r-- | engines/made/screen.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/engines/made/screen.h b/engines/made/screen.h index e549e86eee..beacd0dfa5 100644 --- a/engines/made/screen.h +++ b/engines/made/screen.h @@ -28,6 +28,7 @@ #include "common/endian.h" #include "common/util.h" +#include "common/rect.h" #include "graphics/surface.h" @@ -50,7 +51,7 @@ struct SpriteChannel { }; struct ClipInfo { - uint16 x, y, w, h; + Common::Rect clipRect; Graphics::Surface *destSurface; }; @@ -72,11 +73,8 @@ public: void setPaletteLock(bool lock) { _paletteLock = lock; } void setVisualEffectNum(int visualEffectNum) { _visualEffectNum = visualEffectNum; } - void setClipArea(uint16 x1, uint16 y1, uint16 x2, uint16 y2) { - _clipArea.x = x1; - _clipArea.y = y1; - _clipArea.w = ABS(x2 - x1); - _clipArea.h = ABS(y2 - y1); + void setClipArea(uint16 x1, uint16 y1, uint16 x2, uint16 y2) { + _clipArea.clipRect = Common::Rect(x1, y1, x2, y2); } void setExcludeArea(uint16 x1, uint16 y1, uint16 x2, uint16 y2); |