[Scummvm-git-logs] scummvm branch-2-7 -> 9defd32947f5bd7eb9e93d81bafaff98612bc357
sev-
noreply at scummvm.org
Mon Feb 13 20:09:27 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:
9defd32947 OPENGL: Properly take extra pixels into account when using scalers
Commit: 9defd32947f5bd7eb9e93d81bafaff98612bc357
https://github.com/scummvm/scummvm/commit/9defd32947f5bd7eb9e93d81bafaff98612bc357
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2023-02-13T21:09:19+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 eb9d96a85d6..a551b3057fb 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