try again for Windows

This commit is contained in:
RSDuck
2022-10-13 02:01:19 +02:00
parent 81ab444d76
commit 8ebe8711bb
2 changed files with 2 additions and 2 deletions

View File

@ -1280,7 +1280,7 @@ qreal ScreenPanelGL::devicePixelRatioFromScreen() const
{
const QScreen* screen_for_ratio = window()->windowHandle()->screen();
if (!screen_for_ratio)
screen_for_ratio = QGuiApplication::primaryScreen();
screen_for_ratio = QGuiApplication::primaryScreen();
return screen_for_ratio ? screen_for_ratio->devicePixelRatio() : static_cast<qreal>(1);
}