Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(video): uses explicit default screen from QGuiApplication
Browse files Browse the repository at this point in the history
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
  • Loading branch information
initramfs committed Apr 4, 2016
1 parent 75b40d0 commit d2189f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/cameradevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit d2189f3

Please sign in to comment.