Skip to content

Commit

Permalink
GLK: Fix rendering of pictures in the text buffer window
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Jan 17, 2019
1 parent 95b53f3 commit b076911
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions engines/glk/picture.cpp
Expand Up @@ -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

0 comments on commit b076911

Please sign in to comment.