From ac04002411d4094359c9f2722cecb41dd740d861 Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Thu, 4 Jul 2019 23:30:09 +0530 Subject: HDB: Add Tile::free() and Picture::free() --- engines/hdb/gfx.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'engines/hdb/gfx.cpp') diff --git a/engines/hdb/gfx.cpp b/engines/hdb/gfx.cpp index 36ec659e0b..6c14f57f63 100644 --- a/engines/hdb/gfx.cpp +++ b/engines/hdb/gfx.cpp @@ -758,6 +758,10 @@ int Picture::drawMasked(int x, int y) { return 0; } +void Picture::free() { + _surface.free(); +} + Tile::Tile() : _flags(0), _name("") { _surface.create(32, 32, g_hdb->_format); } @@ -812,4 +816,8 @@ int Tile::drawMasked(int x, int y) { return 0; } +void Tile::free() { + _surface.free(); +} + } -- cgit v1.2.3