From b076911ae405612bfac834a8891a47916d406359 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Wed, 16 Jan 2019 21:02:20 -0800 Subject: GLK: Fix rendering of pictures in the text buffer window --- engines/glk/picture.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'engines/glk/picture.cpp') 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 -- cgit v1.2.3