From fa5ea18fcbfb239b4715d62eecbae2fd03334262 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 16 Feb 2025 22:25:01 +0100 Subject: [PATCH] VIDEO: QTVR: Expose zoom state --- video/qt_decoder.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/video/qt_decoder.h b/video/qt_decoder.h index 0bb5b8bf13b..c06b8360e02 100644 --- a/video/qt_decoder.h +++ b/video/qt_decoder.h @@ -95,6 +95,8 @@ public: int getCurrentColumn() { return _nextVideoTrack->getCurFrame() % _nav.columns; } void setCurrentColumn(int column); + int getZoomState() { return _zoomState; } + const PanoHotSpot *getRolloverHotspot() { return _rolloverHotspot; } const PanoHotSpot *getClickedHotspot() { return _clickedHotspot; } @@ -163,6 +165,14 @@ public: bool _isKeyDown = false; Common::KeyState _lastKey; + enum { + kZoomNone, + kZoomQuestion, + kZoomIn, + kZoomOut, + kZoomLimit, + }; + private: Common::Rect _curBbox; @@ -192,14 +202,6 @@ private: bool _enableEditListBoundsCheckQuirk; - enum { - kZoomNone, - kZoomQuestion, - kZoomIn, - kZoomOut, - kZoomLimit, - }; - class VideoSampleDesc : public Common::QuickTimeParser::SampleDesc { public: VideoSampleDesc(Common::QuickTimeParser::Track *parentTrack, uint32 codecTag);