Browse Source

Log current display/mode on autoswitch

Vincent Lang 9 years ago
parent
commit
365ac945fa
1 changed files with 5 additions and 0 deletions
  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)