aboutsummaryrefslogtreecommitdiff
path: root/engines/lab/image.h
diff options
context:
space:
mode:
authorStrangerke2015-12-13 22:51:23 +0100
committerWillem Jan Palenstijn2015-12-23 21:34:03 +0100
commitad54a75b853ada2c4ae4b99368ac3038dcd92d33 (patch)
tree69f25b8d3fe0ded70a6d8728157f1dac7a759303 /engines/lab/image.h
parent2b91bf2f34c3e0ec4e83fa478f1e426d36719cb7 (diff)
downloadscummvm-rg350-ad54a75b853ada2c4ae4b99368ac3038dcd92d33.tar.gz
scummvm-rg350-ad54a75b853ada2c4ae4b99368ac3038dcd92d33.tar.bz2
scummvm-rg350-ad54a75b853ada2c4ae4b99368ac3038dcd92d33.zip
LAB: Add _vm to Image class
Diffstat (limited to 'engines/lab/image.h')
-rw-r--r--engines/lab/image.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/engines/lab/image.h b/engines/lab/image.h
index 34e3d36658..90ea1f3ada 100644
--- a/engines/lab/image.h
+++ b/engines/lab/image.h
@@ -37,15 +37,19 @@ namespace Common {
namespace Lab {
+class LabEngine;
+
class Image {
+ LabEngine *_vm;
+
public:
uint16 _width;
uint16 _height;
byte *_imageData;
- Image() : _width(0), _height(0), _imageData(0) {}
- Image(int w, int h, byte *d) : _width(w), _height(h), _imageData(d) {}
- Image(Common::File *s);
+ Image(LabEngine *vm) : _width(0), _height(0), _imageData(0), _vm(vm) {}
+ Image(int w, int h, byte *d, LabEngine *vm) : _width(w), _height(h), _imageData(d), _vm(vm) {}
+ Image(Common::File *s, LabEngine *vm);
void drawImage(uint16 x, uint16 y);
void drawMaskImage(uint16 x, uint16 y);