mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Merge pull request #3102
initramfs (1): refactor(video): simplifies retrieval of primary screen
This commit is contained in:
commit
db8bee381e
|
@ -133,7 +133,7 @@ CameraDevice* CameraDevice::open(QString devName, VideoMode mode)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
QScreen* defaultScreen = static_cast<QGuiApplication*>(QGuiApplication::instance())->primaryScreen();
|
QScreen* defaultScreen = QApplication::primaryScreen();
|
||||||
qreal pixRatio;
|
qreal pixRatio;
|
||||||
|
|
||||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 5, 0))
|
#if (QT_VERSION >= QT_VERSION_CHECK(5, 5, 0))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user