[Scummvm-git-logs] scummvm master -> 58d32add4275eec48649a9a08c54c68808fe233d
digitall
547637+digitall at users.noreply.github.com
Wed Jul 14 19:09:35 UTC 2021
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:
58d32add42 GOB: Avoid an off by one
Commit: 58d32add4275eec48649a9a08c54c68808fe233d
https://github.com/scummvm/scummvm/commit/58d32add4275eec48649a9a08c54c68808fe233d
Author: Luca Barbato (lu_zero at gentoo.org)
Date: 2021-07-14T20:09:32+01:00
Commit Message:
GOB: Avoid an off by one
Lost in Time (English floppy version but CD version might be affected as well)
garbles colours during some clips playback otherwise.
Changed paths:
engines/gob/videoplayer.cpp
diff --git a/engines/gob/videoplayer.cpp b/engines/gob/videoplayer.cpp
index bbf4ef4162..2cbd72b1b9 100644
--- a/engines/gob/videoplayer.cpp
+++ b/engines/gob/videoplayer.cpp
@@ -918,7 +918,7 @@ void VideoPlayer::copyPalette(const Video &video, int16 palStart, int16 palEnd)
palStart = palStart * 3;
palEnd = (palEnd + 1) * 3;
- for (int i = palStart; i <= palEnd; i++)
+ for (int i = palStart; i < palEnd; i++)
((char *)(_vm->_global->_pPaletteDesc->vgaPal))[i] = video.decoder->getPalette()[i] >> 2;
}
More information about the Scummvm-git-logs
mailing list