浏览代码

DisplayManager: don't consider 24 and 25 FPS "close"

Changing this due to a user complaint. This should prevent switching to
a 24 Hz mode if 25 FPS video is played.
Vincent Lang 9 年之前
父节点
当前提交
a18523002c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/display/DisplayManager.cpp

+ 1 - 1
src/display/DisplayManager.cpp

@@ -131,7 +131,7 @@ int DisplayManager::findBestMatch(int display, DMMatchMediaInfo& matchInfo)
       weights[candidate->id]->weight += MATCH_WEIGHT_REFRESH_RATE_MULTIPLE;
 
     // close refresh match (less than 1 hz diff to match all 23.xxx modes to 24p)
-    if (fabs(candidate->refreshRate - matchInfo.refreshRate) <= 1)
+    if (fabs(candidate->refreshRate - matchInfo.refreshRate) <= 0.5)
     {
       weights[candidate->id]->weight += MATCH_WEIGHT_REFRESH_RATE_CLOSE;
     }