[Scummvm-git-logs] scummvm master -> 11874c25a66b52731bacfb4c717aa2ea18791e29

athrxx noreply at scummvm.org
Sat Feb 1 12:50:43 UTC 2025


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:
11874c25a6 SCI: fix hercules mode glitch


Commit: 11874c25a66b52731bacfb4c717aa2ea18791e29
    https://github.com/scummvm/scummvm/commit/11874c25a66b52731bacfb4c717aa2ea18791e29
Author: athrxx (athrxx at scummvm.org)
Date: 2025-02-01T13:49:32+01:00

Commit Message:
SCI: fix hercules mode glitch

(only applies to the "cropped image" config that we don't use anyway)

Changed paths:
    engines/sci/graphics/drivers/hercules.cpp


diff --git a/engines/sci/graphics/drivers/hercules.cpp b/engines/sci/graphics/drivers/hercules.cpp
index f5731a87ba6..e7c0a479a95 100644
--- a/engines/sci/graphics/drivers/hercules.cpp
+++ b/engines/sci/graphics/drivers/hercules.cpp
@@ -141,7 +141,7 @@ void SCI0_HerculesDriver::setShakePos(int shakeXOffset, int shakeYOffset) const
 }
 
 void SCI0_HerculesDriver::clearRect(const Common::Rect &r) const {
-	Common::Rect r2((r.left << 1) + _centerX, (r.top & ~1) * 3 / 2 + (r.top & 1) + _centerY, (r.right << 1) + 40, (r.bottom & ~1) * 3 / 2 + (r.bottom & 1) + _centerY);
+	Common::Rect r2((r.left << 1) + _centerX, (r.top & ~1) * 3 / 2 + (r.top & 1) + _centerY, (r.right << 1) + _centerX, (r.bottom & ~1) * 3 / 2 + (r.bottom & 1) + _centerY);
 	GfxDriver::clearRect(r2);
 }
 




More information about the Scummvm-git-logs mailing list