[Scummvm-git-logs] scummvm master -> b076911ae405612bfac834a8891a47916d406359

dreammaster paulfgilbert at gmail.com
Thu Jan 17 06:02:28 CET 2019


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
b076911ae4 GLK: Fix rendering of pictures in the text buffer window


Commit: b076911ae405612bfac834a8891a47916d406359
    https://github.com/scummvm/scummvm/commit/b076911ae405612bfac834a8891a47916d406359
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2019-01-16T21:02:20-08:00

Commit Message:
GLK: Fix rendering of pictures in the text buffer window

Changed paths:
    engines/glk/picture.cpp


diff --git a/engines/glk/picture.cpp b/engines/glk/picture.cpp
index 59ee50c..35e5b8f 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





More information about the Scummvm-git-logs mailing list