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

sev- noreply at scummvm.org
Mon Feb 13 20:08:57 UTC 2023


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:
c6c73ea0ea OPENGL: Properly take extra pixels into account when using scalers


Commit: c6c73ea0ea1210ce5043c9c37fb70d62e4e56372
    https://github.com/scummvm/scummvm/commit/c6c73ea0ea1210ce5043c9c37fb70d62e4e56372
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2023-02-13T21:08:53+01:00

Commit Message:
OPENGL: Properly take extra pixels into account when using scalers

As in SurfaceSDL, the dirty rect must be grown.

Changed paths:
    backends/graphics/opengl/texture.cpp


diff --git a/backends/graphics/opengl/texture.cpp b/backends/graphics/opengl/texture.cpp
index a985baad67e..8a267ef47ea 100644
--- a/backends/graphics/opengl/texture.cpp
+++ b/backends/graphics/opengl/texture.cpp
@@ -573,6 +573,11 @@ void ScaledTexture::updateGLTexture() {
 
 	Common::Rect dirtyArea = getDirtyArea();
 
+	// Extend the dirty region for scalers
+	// that "smear" the screen, e.g. 2xSAI
+	dirtyArea.grow(_extraPixels);
+	dirtyArea.clip(Common::Rect(0, 0, _rgbData.w, _rgbData.h));
+
 	const byte *src = (const byte *)_rgbData.getBasePtr(dirtyArea.left, dirtyArea.top);
 	uint srcPitch = _rgbData.pitch;
 	byte *dst;




More information about the Scummvm-git-logs mailing list