aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/hdb/draw-manager.cpp8
-rw-r--r--engines/hdb/draw-manager.h2
2 files changed, 10 insertions, 0 deletions
diff --git a/engines/hdb/draw-manager.cpp b/engines/hdb/draw-manager.cpp
index b73b9471b1..37d41c2a45 100644
--- a/engines/hdb/draw-manager.cpp
+++ b/engines/hdb/draw-manager.cpp
@@ -298,6 +298,10 @@ void DrawMan::drawSky() {
}
}
+Picture::Picture() : _width(0), _height(0), _name("") {
+ _surface.create(_width, _height, g_hdb->_format);
+}
+
Picture::~Picture() {
_surface.free();
}
@@ -348,6 +352,10 @@ void Picture::drawMasked(int x, int y) {
}
}
+Tile::Tile() : _flags(0), _name("") {
+ _surface.create(32, 32, g_hdb->_format);
+}
+
Tile::~Tile() {
_surface.free();
}
diff --git a/engines/hdb/draw-manager.h b/engines/hdb/draw-manager.h
index 57ef1ad017..1474ae7a50 100644
--- a/engines/hdb/draw-manager.h
+++ b/engines/hdb/draw-manager.h
@@ -130,6 +130,7 @@ private:
class Picture {
public:
+ Picture();
~Picture();
Graphics::Surface load(Common::SeekableReadStream *stream);
@@ -148,6 +149,7 @@ private:
class Tile {
public:
+ Tile();
~Tile();
Graphics::Surface load(Common::SeekableReadStream *stream);