diff options
author | Nipun Garg | 2019-06-21 02:49:28 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:52 +0200 |
commit | 949f27872a3efec74f19f8b8508d4b81ffdf1048 (patch) | |
tree | 5efdc6e4265a520fc6d97b4b52a6dd97a69598b6 /engines/hdb | |
parent | 46918c917eb4936b303ab497738dd801258a1d6d (diff) | |
download | scummvm-rg350-949f27872a3efec74f19f8b8508d4b81ffdf1048.tar.gz scummvm-rg350-949f27872a3efec74f19f8b8508d4b81ffdf1048.tar.bz2 scummvm-rg350-949f27872a3efec74f19f8b8508d4b81ffdf1048.zip |
HDB: Add constructors to Tile and Picture
Diffstat (limited to 'engines/hdb')
-rw-r--r-- | engines/hdb/draw-manager.cpp | 8 | ||||
-rw-r--r-- | engines/hdb/draw-manager.h | 2 |
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); |