aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/msurface.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mads/msurface.h')
-rw-r--r--engines/mads/msurface.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/mads/msurface.h b/engines/mads/msurface.h
index d5b8741188..37ab305fb0 100644
--- a/engines/mads/msurface.h
+++ b/engines/mads/msurface.h
@@ -50,6 +50,8 @@ struct SpriteInfo {
* MADS graphics surface
*/
class MSurface : public Graphics::Surface {
+private:
+ bool _freeFlag;
protected:
static MADSEngine *_vm;
public:
@@ -84,6 +86,12 @@ public:
void setSize(int width, int height);
/**
+ * Sets the pixels the surface is associated with
+ * @remarks The surface will not free the data block
+ */
+ void setPixels(byte *pData, int horizSize, int vertSize);
+
+ /**
* Draws an arbitrary line on the screen using a specified color
* @param startPos Starting position
* @param endPos Ending position