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

AndywinXp noreply at scummvm.org
Wed May 1 17:48:20 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:
e1bb816a50 SCUMM: GFX: Simplify expression and fix truncation issue


Commit: e1bb816a50de9b8464e12cd26d1478cae771ac5f
    https://github.com/scummvm/scummvm/commit/e1bb816a50de9b8464e12cd26d1478cae771ac5f
Author: AndywinXp (andywinxp at gmail.com)
Date: 2024-05-01T19:48:15+02:00

Commit Message:
SCUMM: GFX: Simplify expression and fix truncation issue

Changed paths:
    engines/scumm/gfx.cpp


diff --git a/engines/scumm/gfx.cpp b/engines/scumm/gfx.cpp
index 649a7c495d0..f0101be696b 100644
--- a/engines/scumm/gfx.cpp
+++ b/engines/scumm/gfx.cpp
@@ -4309,7 +4309,7 @@ void ScummEngine::transitionEffect(int a) {
 	if (_game.version >= 3 || _game.platform == Common::kPlatformNES) {
 		numOfIterations = transitionEffects[a].numOfIterations;
 	} else {
-		numOfIterations = (a == 0 || a == 4) ? ceil((height / 8.0) / 2) : height / 8;
+		numOfIterations = (a == 0 || a == 4) ? ceil((double)height / 16.0) : height / 8;
 	}
 
 	for (i = 0; i < 16; i++) {




More information about the Scummvm-git-logs mailing list