فهرست منبع

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()
       << m_displayManager->displays[currentDisplay]->videoModes[bestmode]->getPrettyName()
       << "on display" << currentDisplay;
       << "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.";
     QLOG_INFO() << "No better video mode than the currently active one found.";
   }
   }