[Scummvm-git-logs] scummvm master -> a418d03b2579048dacdde708048a0587082c6065
bluegr
noreply at scummvm.org
Thu Oct 31 01:12:10 UTC 2024
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:
a418d03b25 TSAGE: Fix background refresh regression, after ManagedSurface changes
Commit: a418d03b2579048dacdde708048a0587082c6065
https://github.com/scummvm/scummvm/commit/a418d03b2579048dacdde708048a0587082c6065
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2024-10-31T03:11:54+02:00
Commit Message:
TSAGE: Fix background refresh regression, after ManagedSurface changes
Screen sections should be refreshed into the actual back surface, not a
copy of it. A regression from ac0340369c4fdd707b8040944ed10393f701a3c9
Changed paths:
engines/tsage/scenes.cpp
diff --git a/engines/tsage/scenes.cpp b/engines/tsage/scenes.cpp
index e9151cddd79..7b36059b67c 100644
--- a/engines/tsage/scenes.cpp
+++ b/engines/tsage/scenes.cpp
@@ -463,9 +463,8 @@ void Scene::refreshBackground(int xAmount, int yAmount) {
// Check if the section is already loaded
if ((_enabledSections[xp * 16 + yp] == 0xffff) || ((xAmount == 0) && (yAmount == 0))) {
// Chunk isn't loaded, so load it in
- Graphics::ManagedSurface s;
- s.copyFrom(_backSurface.lockSurface());
- GfxSurface::loadScreenSection(s, xp - xHalfOffset, yp - yHalfOffset, xp, yp);
+ Graphics::ManagedSurface *s = &_backSurface.lockSurface();
+ GfxSurface::loadScreenSection(*s, xp - xHalfOffset, yp - yHalfOffset, xp, yp);
_backSurface.unlockSurface();
changedFlag = true;
} else {
More information about the Scummvm-git-logs
mailing list