[Scummvm-git-logs] scummvm master -> 36226b7404b218c885aa7e3a6d0c09d2c6e5773c

sev- noreply at scummvm.org
Wed Sep 10 20:55:46 UTC 2025


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
36226b7404 VIDEO: QTVR: Correctly set zoom when default is requested


Commit: 36226b7404b218c885aa7e3a6d0c09d2c6e5773c
    https://github.com/scummvm/scummvm/commit/36226b7404b218c885aa7e3a6d0c09d2c6e5773c
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2025-09-10T22:55:07+02:00

Commit Message:
VIDEO: QTVR: Correctly set zoom when default is requested

Changed paths:
    video/qtvr_decoder.cpp


diff --git a/video/qtvr_decoder.cpp b/video/qtvr_decoder.cpp
index 2d7b789c6aa..cccc28c0227 100644
--- a/video/qtvr_decoder.cpp
+++ b/video/qtvr_decoder.cpp
@@ -352,6 +352,9 @@ bool QuickTimeDecoder::setFOV(float fov) {
 	PanoSampleDesc *desc = (PanoSampleDesc *)_panoTrack->sampleDescs[0];
 	bool success = true;
 
+	if (fov == 0.0f)	// This is reference to default FOV
+		fov = _panoTrack->panoInfo.defZoom;
+
 	if (fov <= desc->_minimumZoom) {
 		fov = desc->_minimumZoom;
 		success = false;
@@ -363,6 +366,8 @@ bool QuickTimeDecoder::setFOV(float fov) {
 	if (_fov != fov) {
 		PanoTrackHandler *track = (PanoTrackHandler *)getTrack(_panoTrack->targetTrack);
 
+		debugC(3, kDebugLevelGVideo, "QuickTimeDecoder::setFOV: fov: %f (was %f)", fov, _fov);
+
 		track->_currentFOV = _fov;
 		_fov = fov;
 
@@ -485,6 +490,8 @@ void QuickTimeDecoder::goToNode(uint32 nodeID) {
 
 	_currentSample = idx;
 
+	debugC(3, kDebugLevelGVideo, "QuickTimeDecoder::goToNode(): Moving to nodeID: %d (index: %d)", nodeID, idx);
+
 	setPanAngle(_panoTrack->panoSamples[_currentSample].hdr.defHPan);
 	setTiltAngle(_panoTrack->panoSamples[_currentSample].hdr.defVPan);
 	setFOV(_panoTrack->panoSamples[_currentSample].hdr.defZoom);




More information about the Scummvm-git-logs mailing list