[Scummvm-git-logs] scummvm master -> 7526020b126c0f9a08b5bac18e76364dcbcfec01

aquadran noreply at scummvm.org
Wed Nov 24 20:27:56 UTC 2021


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:
7526020b12 STARK: Fixed memory corruption in software renderer


Commit: 7526020b126c0f9a08b5bac18e76364dcbcfec01
    https://github.com/scummvm/scummvm/commit/7526020b126c0f9a08b5bac18e76364dcbcfec01
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2021-11-24T21:27:49+01:00

Commit Message:
STARK: Fixed memory corruption in software renderer

Changed paths:
    engines/stark/gfx/tinygl.cpp


diff --git a/engines/stark/gfx/tinygl.cpp b/engines/stark/gfx/tinygl.cpp
index 7c459f7978..6c73528107 100644
--- a/engines/stark/gfx/tinygl.cpp
+++ b/engines/stark/gfx/tinygl.cpp
@@ -172,7 +172,7 @@ Common::Rect TinyGLDriver::getUnscaledViewport() const {
 
 Graphics::Surface *TinyGLDriver::getViewportScreenshot() const {
 	Graphics::Surface *tmp = new Graphics::Surface();
-	tmp->create(_viewport.width(), _viewport.height(), getRGBAPixelFormat());
+	tmp->create(kOriginalWidth, kOriginalHeight, g_system->getScreenFormat());
 	Graphics::Surface *s = new Graphics::Surface();
 	s->create(_viewport.width(), _viewport.height(), getRGBAPixelFormat());
 	Graphics::PixelBuffer buf(tmp->format, (byte *)tmp->getPixels());




More information about the Scummvm-git-logs mailing list