[Scummvm-git-logs] scummvm master -> 830baccbb63fe8cdb08e368ad82f2b767d20ea62

sev- noreply at scummvm.org
Fri Feb 7 16:49:42 UTC 2025


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:
830baccbb6 VIDEO: QTVR: Fix horizontal flip of the projected panorama


Commit: 830baccbb63fe8cdb08e368ad82f2b767d20ea62
    https://github.com/scummvm/scummvm/commit/830baccbb63fe8cdb08e368ad82f2b767d20ea62
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2025-02-07T17:49:10+01:00

Commit Message:
VIDEO: QTVR: Fix horizontal flip of the projected panorama

Changed paths:
    video/qtvr_decoder.cpp


diff --git a/video/qtvr_decoder.cpp b/video/qtvr_decoder.cpp
index aa979d58d0f..005889f9154 100644
--- a/video/qtvr_decoder.cpp
+++ b/video/qtvr_decoder.cpp
@@ -587,10 +587,14 @@ void QuickTimeDecoder::PanoTrackHandler::projectPanorama() {
 		if (leftSrcCoord < 0)
 			leftSrcCoord += panoWidth;
 
+		leftSrcCoord = desc->_sceneSizeY - 1 - leftSrcCoord;
+
 		rightSrcCoord = rightSrcCoord % static_cast<int32>(panoWidth);
 		if (rightSrcCoord < 0)
 			rightSrcCoord += w;
 
+		rightSrcCoord = desc->_sceneSizeY - 1 - rightSrcCoord;
+
 		uint16 x1 = halfWidthRoundedUp - 1 - projectionCol;
 		uint16 x2 = w - halfWidthRoundedUp + projectionCol;
 




More information about the Scummvm-git-logs mailing list