소스 검색

Log current display/mode on autoswitch

Vincent Lang 9 년 전
부모
커밋
365ac945fa
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      src/display/DisplayComponent.cpp

+ 5 - 0
src/display/DisplayComponent.cpp

@@ -105,7 +105,10 @@ bool DisplayComponent::switchToBestVideoMode(float frameRate)
 
   int currentDisplay = getApplicationDisplay();
   if (currentDisplay < 0)
+  {
+    QLOG_INFO() << "Not switching rate - current display not found.";
     return false;
+  }
 
   int currentMode = m_displayManager->getCurrentDisplayMode(currentDisplay);
   if (m_lastVideoMode < 0)
@@ -114,6 +117,8 @@ bool DisplayComponent::switchToBestVideoMode(float frameRate)
     m_lastDisplay = currentDisplay;
   }
 
+  QLOG_DEBUG() << "Current display:" << currentDisplay << "mode:" << currentMode;
+
   DMMatchMediaInfo matchInfo(frameRate, false);
   int bestmode = m_displayManager->findBestMatch(currentDisplay, matchInfo);
   if (bestmode >= 0)