Skip to content

Commit

Permalink
Merge pull request #3489 from MilhouseVH/le90_k18.2-refresh-fix
Browse files Browse the repository at this point in the history
kodi: fix 24fp refresh rate switching
  • Loading branch information
CvH authored May 4, 2019
2 parents f51de0a + 9885157 commit 0edd21d
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions packages/mediacenter/kodi/patches/kodi-999.99-PR16055.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
From 36e78e1bd8d0f43ccace8e8ce03a4b73ab63a4c9 Mon Sep 17 00:00:00 2001
From: peak3d <pfau@peak3d.de>
Date: Fri, 3 May 2019 11:32:13 +0200
Subject: [PATCH] Remove 3:2 pullback from current check

---
xbmc/windowing/Resolution.cpp | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/xbmc/windowing/Resolution.cpp b/xbmc/windowing/Resolution.cpp
index 1921dd260e1c..19a2dde602e9 100644
--- a/xbmc/windowing/Resolution.cpp
+++ b/xbmc/windowing/Resolution.cpp
@@ -163,13 +163,12 @@ void CResolutionUtils::FindResolutionFromWhitelist(float fps, int width, int hei
}
}

- CLog::Log(LOGDEBUG, "No double refresh rate whitelisted resolution matched, trying current resolution");
+ CLog::Log(LOGDEBUG, "No 3:2 pullback refresh rate whitelisted resolution matched, trying current resolution");

if (width <= curr.iScreenWidth
&& height <= curr.iScreenHeight
&& (MathUtils::FloatEquals(curr.fRefreshRate, fps, 0.01f)
- || MathUtils::FloatEquals(curr.fRefreshRate, fps * 2, 0.01f)
- || MathUtils::FloatEquals(curr.fRefreshRate, fps * 2.5f, 0.01f)))
+ || MathUtils::FloatEquals(curr.fRefreshRate, fps * 2, 0.01f)))
{
CLog::Log(LOGDEBUG, "Matched current Resolution %s (%d)", curr.strMode.c_str(), resolution);
return;

0 comments on commit 0edd21d

Please sign in to comment.