aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/draw-manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/hdb/draw-manager.cpp')
-rw-r--r--engines/hdb/draw-manager.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/hdb/draw-manager.cpp b/engines/hdb/draw-manager.cpp
index 72c8820cdf..e1cddda8be 100644
--- a/engines/hdb/draw-manager.cpp
+++ b/engines/hdb/draw-manager.cpp
@@ -273,6 +273,13 @@ void Picture::draw(int x, int y) {
g_system->copyRectToScreen(_surface.getBasePtr(0, 0), _surface.pitch, x, y, _surface.w, _surface.h);
}
+void Picture::drawMasked(int x, int y) {
+ Graphics::ManagedSurface tempSurf;
+ tempSurf.create(_surface.w, _surface.h);
+ tempSurf.transBlitFrom(_surface, 0xf81f);
+ g_system->copyRectToScreen(tempSurf.getBasePtr(0, 0), tempSurf.pitch, x, y, tempSurf.w, tempSurf.h);
+}
+
Tile::~Tile() {
_surface.free();
}