[Scummvm-git-logs] scummvm master -> 83b6f8e9e39f0210d26883a1160e6924a9aad6be
eriktorbjorn
noreply at scummvm.org
Thu Nov 14 05:37:34 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:
83b6f8e9e3 SCUMM: Fix bad height for Indy 3 text box (bug #15484)
Commit: 83b6f8e9e39f0210d26883a1160e6924a9aad6be
https://github.com/scummvm/scummvm/commit/83b6f8e9e39f0210d26883a1160e6924a9aad6be
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2024-11-14T06:35:42+01:00
Commit Message:
SCUMM: Fix bad height for Indy 3 text box (bug #15484)
This was a recent regression. The last parameter to copyRectToScreen()
is the height, not the position, so it should not be adjusted by
_macScreenDrawOffset.
Changed paths:
engines/scumm/gfx_mac.cpp
diff --git a/engines/scumm/gfx_mac.cpp b/engines/scumm/gfx_mac.cpp
index 88b7c9451f9..e27d78da3c7 100644
--- a/engines/scumm/gfx_mac.cpp
+++ b/engines/scumm/gfx_mac.cpp
@@ -133,7 +133,7 @@ void ScummEngine::mac_drawIndy3TextBox() {
byte *ptr = (byte *)s->getBasePtr(0, 2);
int pitch = s->pitch;
- _macScreen->copyRectToSurface(ptr, pitch, x, y + 2 * _macScreenDrawOffset, w, h + 2 * _macScreenDrawOffset);
+ _macScreen->copyRectToSurface(ptr, pitch, x, y + 2 * _macScreenDrawOffset, w, h);
_textSurface.fillRect(Common::Rect(x, y, x + w, y + h), 0);
mac_markScreenAsDirty(x, y, w, h);
More information about the Scummvm-git-logs
mailing list