浏览代码

DisplayComponent: pass along setDisplayMode return value

Seems like a good idea, although I guess it's not that important.
Vincent Lang 9 年之前
父节点
当前提交
030bf59e9b
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      src/display/DisplayComponent.cpp

+ 1 - 2
src/display/DisplayComponent.cpp

@@ -131,8 +131,7 @@ bool DisplayComponent::switchToBestVideoMode(float frameRate)
       << m_displayManager->displays[currentDisplay]->videoModes[bestmode]->getPrettyName()
       << "on display" << currentDisplay;
 
-      m_displayManager->setDisplayMode(currentDisplay, bestmode);
-      return true;
+      return m_displayManager->setDisplayMode(currentDisplay, bestmode);
     }
     QLOG_INFO() << "No better video mode than the currently active one found.";
   }