From 616e6980814f19f8a01625e2b2fd5c69bde925a7 Mon Sep 17 00:00:00 2001 From: CrystalP Date: Sat, 16 Mar 2024 18:47:16 -0400 Subject: [PATCH] [cleanup] remove aspect ratio calculation remnants --- xbmc/cores/VideoPlayer/VideoRenderers/BaseRenderer.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/xbmc/cores/VideoPlayer/VideoRenderers/BaseRenderer.cpp b/xbmc/cores/VideoPlayer/VideoRenderers/BaseRenderer.cpp index a451bc4be7..a3dca38a3b 100644 --- a/xbmc/cores/VideoPlayer/VideoRenderers/BaseRenderer.cpp +++ b/xbmc/cores/VideoPlayer/VideoRenderers/BaseRenderer.cpp @@ -40,9 +40,7 @@ CBaseRenderer::~CBaseRenderer() = default; float CBaseRenderer::GetAspectRatio() const { - float width = (float)m_sourceWidth; - float height = (float)m_sourceHeight; - return m_sourceFrameRatio * width / height * m_sourceHeight / m_sourceWidth; + return m_sourceFrameRatio; } void CBaseRenderer::GetVideoRect(CRect& source, CRect& dest, CRect& view) const -- 2.11.4.GIT