aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/surface.h
diff options
context:
space:
mode:
authorPaul Gilbert2015-05-19 07:50:50 -0400
committerPaul Gilbert2015-05-19 07:50:50 -0400
commit2752db8103c2076bc7838f6306de338f986f68a4 (patch)
tree5c867352354b00587f66ac34b794b31e06c79828 /engines/sherlock/surface.h
parent1df183ffcb08a69ed414afd69284a0596fee4e82 (diff)
downloadscummvm-rg350-2752db8103c2076bc7838f6306de338f986f68a4.tar.gz
scummvm-rg350-2752db8103c2076bc7838f6306de338f986f68a4.tar.bz2
scummvm-rg350-2752db8103c2076bc7838f6306de338f986f68a4.zip
SHERLOCK: Remove iimplicit conversion operator from ImageFrame
Diffstat (limited to 'engines/sherlock/surface.h')
-rw-r--r--engines/sherlock/surface.h23
1 files changed, 19 insertions, 4 deletions
diff --git a/engines/sherlock/surface.h b/engines/sherlock/surface.h
index 7049d8ae76..4b7166b090 100644
--- a/engines/sherlock/surface.h
+++ b/engines/sherlock/surface.h
@@ -25,10 +25,11 @@
#include "common/rect.h"
#include "graphics/surface.h"
-#include "sherlock/resources.h"
namespace Sherlock {
+struct ImageFrame;
+
class Surface : public Graphics::Surface {
private:
bool _freePixels;
@@ -56,16 +57,30 @@ public:
void blitFrom(const Graphics::Surface &src);
/**
+ * Copy an image frame into this surface
+ */
+ void blitFrom(const ImageFrame &src);
+
+ /**
* Draws a surface at a given position within this surface
*/
void blitFrom(const Graphics::Surface &src, const Common::Point &pt);
/**
+ * Copy an image frame onto this surface at a given position
+ */
+ void blitFrom(const ImageFrame &src, const Common::Point &pt);
+
+ /**
* Draws a sub-section of a surface at a given position within this surface
*/
- void blitFrom(const Graphics::Surface &src, const Common::Point &pt,
- const Common::Rect &srcBounds);
-
+ void blitFrom(const Graphics::Surface &src, const Common::Point &pt, const Common::Rect &srcBounds);
+
+ /**
+ * Copy a sub-area of a source image frame into this surface at a given position
+ */
+ void blitFrom(const ImageFrame &src, const Common::Point &pt, const Common::Rect &srcBounds);
+
/**
* Draws an image frame at a given position within this surface with transparency
*/