[Scummvm-git-logs] scummvm master -> d536a267accdc2be23ae5bb5710002c5ace5bdd2

sev- noreply at scummvm.org
Thu Feb 6 19:23:40 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:
d536a267ac VIDEO: QTVR: Fix panorama rendering rotation


Commit: d536a267accdc2be23ae5bb5710002c5ace5bdd2
    https://github.com/scummvm/scummvm/commit/d536a267accdc2be23ae5bb5710002c5ace5bdd2
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2025-02-06T20:23:14+01:00

Commit Message:
VIDEO: QTVR: Fix panorama rendering rotation

Changed paths:
    video/qtvr_decoder.cpp


diff --git a/video/qtvr_decoder.cpp b/video/qtvr_decoder.cpp
index 4c92064b2a3..14a7a86f929 100644
--- a/video/qtvr_decoder.cpp
+++ b/video/qtvr_decoder.cpp
@@ -509,7 +509,7 @@ void QuickTimeDecoder::PanoTrackHandler::projectPanorama() {
 			panAngle = panAngle * M_PI / 180.0;
 
 			// It is flipped 90 degrees
-			int u = ((float)desc->_sceneSizeY) / (desc->_hPanEnd - desc->_hPanStart) / M_PI * 180.0 * panAngle;
+			int u = desc->_sceneSizeY - 1 - ((float)desc->_sceneSizeY) / (desc->_hPanEnd - desc->_hPanStart) / M_PI * 180.0 * panAngle;
 
 			float tiltAngle = _curTiltAngle + (y - h / 2) * _decoder->_fov / (float)h;
 			tiltAngle = tan(tiltAngle * M_PI / 180.0);




More information about the Scummvm-git-logs mailing list