aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/image_file.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sherlock/image_file.h')
-rw-r--r--engines/sherlock/image_file.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/sherlock/image_file.h b/engines/sherlock/image_file.h
index da260ab30b..778332b726 100644
--- a/engines/sherlock/image_file.h
+++ b/engines/sherlock/image_file.h
@@ -46,6 +46,11 @@ struct ImageFrame {
Graphics::Surface _frame;
/**
+ * Converts an ImageFrame record to a surface for convenience in passing to drawing methods
+ */
+ operator const Graphics::Surface &() { return _frame; }
+
+ /**
* Decompress a single frame for the sprite
*/
void decompressFrame(const byte *src, bool isRoseTattoo);