diff options
author | Paul Gilbert | 2010-05-23 07:20:40 +0000 |
---|---|---|
committer | Paul Gilbert | 2010-05-23 07:20:40 +0000 |
commit | dd9bf70761f2de9771912984209422f1f63bd3e8 (patch) | |
tree | 95923436f2aa71a906a1509d70b05c987938bb3d /engines/m4/graphics.h | |
parent | 7a6a2a62eebfea5f09bf86fee3935e1ad031959d (diff) | |
download | scummvm-rg350-dd9bf70761f2de9771912984209422f1f63bd3e8.tar.gz scummvm-rg350-dd9bf70761f2de9771912984209422f1f63bd3e8.tar.bz2 scummvm-rg350-dd9bf70761f2de9771912984209422f1f63bd3e8.zip |
Major work done on the animation and support classes to match the original
svn-id: r49150
Diffstat (limited to 'engines/m4/graphics.h')
-rw-r--r-- | engines/m4/graphics.h | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/engines/m4/graphics.h b/engines/m4/graphics.h index 4c89c50b8a..6d0a82ad25 100644 --- a/engines/m4/graphics.h +++ b/engines/m4/graphics.h @@ -145,8 +145,10 @@ public: void clear(); void frameRect(const Common::Rect &r, uint8 color); void fillRect(const Common::Rect &r, uint8 color); - void copyFrom(M4Surface *src, const Common::Rect &srcBounds, int destX, int destY, - int transparentColor = -1); + void copyFrom(M4Surface *src, const Common::Rect &srcBounds, int destX, int destY, + int transparentColour = -1); + void copyFrom(M4Surface *src, int destX, int destY, int depth, M4Surface *depthSurface, int scale, + int transparentColour = -1); void update() { if (_isScreen) { @@ -156,16 +158,22 @@ public: } // copyTo methods - inline void copyTo(M4Surface *dest, int transparentColor = -1) { - dest->copyFrom(this, Common::Rect(width(), height()), 0, 0, transparentColor); + inline void copyTo(M4Surface *dest, int transparentColour = -1) { + dest->copyFrom(this, Common::Rect(width(), height()), 0, 0, transparentColour); } - inline void copyTo(M4Surface *dest, int x, int y, int transparentColor = -1) { - dest->copyFrom(this, Common::Rect(width(), height()), x, y, transparentColor); + inline void copyTo(M4Surface *dest, int x, int y, int transparentColour = -1) { + dest->copyFrom(this, Common::Rect(width(), height()), x, y, transparentColour); } inline void copyTo(M4Surface *dest, const Common::Rect &srcBounds, int destX, int destY, - int transparentColor = -1) { - dest->copyFrom(this, srcBounds, destX, destY, transparentColor); + int transparentColour = -1) { + dest->copyFrom(this, srcBounds, destX, destY, transparentColour); } + inline void copyTo(M4Surface *dest, int destX, int destY, int depth, M4Surface *depthsSurface, int scale, + int transparentColour = -1) { + dest->copyFrom(this, destX, destY, depth, depthsSurface, scale, transparentColour); + } + + void translate(RGBList *list, bool isTransparent = false); }; |