aboutsummaryrefslogtreecommitdiff
path: root/engines/glk
diff options
context:
space:
mode:
authorPaul Gilbert2019-01-16 21:02:20 -0800
committerPaul Gilbert2019-01-16 21:02:20 -0800
commitb076911ae405612bfac834a8891a47916d406359 (patch)
tree4f40dd44b844c020ceadcf224e44819b2c70ec53 /engines/glk
parent95b53f3737262929fd5bb87b3949e3acd82884a2 (diff)
downloadscummvm-rg350-b076911ae405612bfac834a8891a47916d406359.tar.gz
scummvm-rg350-b076911ae405612bfac834a8891a47916d406359.tar.bz2
scummvm-rg350-b076911ae405612bfac834a8891a47916d406359.zip
GLK: Fix rendering of pictures in the text buffer window
Diffstat (limited to 'engines/glk')
-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