aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/glk/picture.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/glk/picture.cpp b/engines/glk/picture.cpp
index 59ee50c835..35e5b8fea2 100644
--- a/engines/glk/picture.cpp
+++ b/engines/glk/picture.cpp
@@ -213,8 +213,10 @@ void Picture::decrement() {
}
void Picture::drawPicture(const Common::Point &destPos, const Common::Rect &box) {
- Graphics::Surface s = g_vm->_screen->getSubArea(box);
- s.copyRectToSurface(*this, destPos.x - box.left, destPos.y, getBounds());
+ Graphics::ManagedSurface s(*g_vm->_screen, box);
+ Common::Point pt(destPos.x - box.left, destPos.y - box.top);
+
+ s.blitFrom(*this, pt);
}
} // End of namespace Glk