[Scummvm-git-logs] scummvm branch-2-9 -> dae29b1fd3aee8e0f031c2a96bec22ca4846e87f

mduggan noreply at scummvm.org
Sat Nov 23 03:14:57 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:
dae29b1fd3 DGDS: Fix clip window setting


Commit: dae29b1fd3aee8e0f031c2a96bec22ca4846e87f
    https://github.com/scummvm/scummvm/commit/dae29b1fd3aee8e0f031c2a96bec22ca4846e87f
Author: Matthew Duggan (mgithub at guarana.org)
Date: 2024-11-23T14:14:44+11:00

Commit Message:
DGDS: Fix clip window setting

The values to the TTM op 0x4004 are inclusive x/y values and default to 319/199
in the original, so we need to add 1 when setting the draw rect.

Changed paths:
    engines/dgds/ttm.cpp


diff --git a/engines/dgds/ttm.cpp b/engines/dgds/ttm.cpp
index 774b1580a3f..7f81430998b 100644
--- a/engines/dgds/ttm.cpp
+++ b/engines/dgds/ttm.cpp
@@ -771,7 +771,7 @@ void TTMInterpreter::handleOperation(TTMEnviro &env, TTMSeq &seq, uint16 op, byt
 	}
 	case 0x4000: // SET CLIP WINDOW x,y,x2,y2:int	[0..320,0..200]
 		// NOTE: params are xmax/ymax, NOT w/h
-		seq._drawWin = Common::Rect(ivals[0], ivals[1], ivals[2], ivals[3]);
+		seq._drawWin = Common::Rect(ivals[0], ivals[1], ivals[2] + 1, ivals[3] + 1);
 		break;
 	case 0x4110: // FADE OUT:	colorno,ncolors,targetcol,speed:byte
 		if (seq._executed) // this is a one-shot op.




More information about the Scummvm-git-logs mailing list