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

sev- noreply at scummvm.org
Fri Jun 6 11:05:01 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:
d44f751763 VIDEO: QTVR: Fix hard coded maximum zoom value


Commit: d44f751763cff966ff81eab12867962e6678de47
    https://github.com/scummvm/scummvm/commit/d44f751763cff966ff81eab12867962e6678de47
Author: Malhar (themalharbdv2046 at gmail.com)
Date: 2025-06-06T13:04:59+02:00

Commit Message:
VIDEO: QTVR: Fix hard coded maximum zoom value

Instead of hard coded value of 65 degrees (determined using
experimentation) calculate the maximum value using the panorama
top and bottom bounds. This way the FOV won't go out of bounds for
any director movie/

Changed paths:
    video/qtvr_decoder.cpp


diff --git a/video/qtvr_decoder.cpp b/video/qtvr_decoder.cpp
index 0d02c83b6de..2d7b789c6aa 100644
--- a/video/qtvr_decoder.cpp
+++ b/video/qtvr_decoder.cpp
@@ -118,10 +118,10 @@ Common::QuickTimeParser::SampleDesc *QuickTimeDecoder::readPanoSampleDesc(Common
 	entry->_hotSpotColorDepth = _fd->readSint16BE(); // must be 8
 
 	if (entry->_minimumZoom == 0.0)
-		entry->_minimumZoom = 5.0;
+		entry->_minimumZoom = 2.0;
 
 	if (entry->_maximumZoom == 0.0)
-		entry->_maximumZoom = 65.0;
+		entry->_maximumZoom = abs(entry->_vPanTop - entry->_vPanBottom);
 
 	debugC(2, kDebugLevelGVideo, "    version: %d.%d sceneTrackID: %d loResSceneTrackID: %d hotSpotTrackID: %d",
 		entry->_majorVersion, entry->_minorVersion, entry->_sceneTrackID, entry->_loResSceneTrackID, entry->_hotSpotTrackID);




More information about the Scummvm-git-logs mailing list