mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix(video): uses explicit default screen from QGuiApplication
This commit changes the method used to obtain the active screen from simply selecting the first screen in the list to using the explicit default screen from QGuiApplication::primaryScreen() function
This commit is contained in:
parent
75b40d0a6f
commit
d2189f3891
|
@ -133,7 +133,7 @@ CameraDevice* CameraDevice::open(QString devName, VideoMode mode)
|
|||
}
|
||||
else
|
||||
{
|
||||
QScreen* defaultScreen = QApplication::screens().at(0);
|
||||
QScreen* defaultScreen = static_cast<QGuiApplication*>(QGuiApplication::instance())->primaryScreen();
|
||||
qreal pixRatio;
|
||||
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 5, 0))
|
||||
|
|
Loading…
Reference in New Issue
Block a user