Kaynağa Gözat

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 yıl önce
ebeveyn
işleme
a18523002c
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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;
     }