[Scummvm-git-logs] scummvm master -> bc561336168ca06176b04ae91327c232d8ce43e2
AndywinXp
noreply at scummvm.org
Mon Oct 16 21:31:55 UTC 2023
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:
bc56133616 SWORD1: PSX: Improve accuracy of credits clipping
Commit: bc561336168ca06176b04ae91327c232d8ce43e2
https://github.com/scummvm/scummvm/commit/bc561336168ca06176b04ae91327c232d8ce43e2
Author: AndywinXp (andywinxp at gmail.com)
Date: 2023-10-16T23:31:50+02:00
Commit Message:
SWORD1: PSX: Improve accuracy of credits clipping
Changed paths:
engines/sword1/control.cpp
diff --git a/engines/sword1/control.cpp b/engines/sword1/control.cpp
index 74c10ab2370..795edf1d626 100644
--- a/engines/sword1/control.cpp
+++ b/engines/sword1/control.cpp
@@ -3360,11 +3360,10 @@ void Control::createCreditsTextSprite(uint8 *data, int32 pitch, uint8 *str, uint
}
void Control::renderCreditsTextSprite(uint8 *data, uint8 *screenBuf, int16 x, int16 y, int16 width, int16 height) {
- // Coordinates corrections from disasm
- // (remember that the PSX framebuffer is bigger than our target 640x480 screen)
+ // Clip the coordinates like the PSX code would do
y = (y + 1) & 0xFFFE;
x -= 129;
- y -= 72;
+ y -= (128 - 56);
// Boundary checks
if (x >= SCREEN_WIDTH || y >= SCREEN_FULL_DEPTH)
More information about the Scummvm-git-logs
mailing list