diff options
author | Paul Gilbert | 2019-01-16 21:02:20 -0800 |
---|---|---|
committer | Paul Gilbert | 2019-01-16 21:02:20 -0800 |
commit | b076911ae405612bfac834a8891a47916d406359 (patch) | |
tree | 4f40dd44b844c020ceadcf224e44819b2c70ec53 | |
parent | 95b53f3737262929fd5bb87b3949e3acd82884a2 (diff) | |
download | scummvm-rg350-b076911ae405612bfac834a8891a47916d406359.tar.gz scummvm-rg350-b076911ae405612bfac834a8891a47916d406359.tar.bz2 scummvm-rg350-b076911ae405612bfac834a8891a47916d406359.zip |
GLK: Fix rendering of pictures in the text buffer window
-rw-r--r-- | engines/glk/picture.cpp | 6 |
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 |