瀏覽代碼

DisplayManagerWin: log which mode we're trying to switch to

Vincent Lang 9 年之前
父節點
當前提交
a074cc930d
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/display/win/DisplayManagerWin.cpp

+ 2 - 0
src/display/win/DisplayManagerWin.cpp

@@ -98,6 +98,8 @@ bool DisplayManagerWin::setDisplayMode(int display, int mode)
 
   if (getModeInfo(display, mode, modeInfo))
   {
+    QLOG_DEBUG() << "Switching to mode" << mode << "on display" << display << ":" << displays[display]->videoModes[mode]->getPrettyName();
+
     modeInfo.dmFields = DM_PELSWIDTH | DM_PELSHEIGHT | DM_DISPLAYFREQUENCY | DM_DISPLAYFLAGS;
 
     LONG rc = ChangeDisplaySettingsExW((LPCWSTR)m_displayAdapters[display].utf16(), &modeInfo, NULL,