massive DPI improvements

This commit is contained in:
Syping 2019-01-13 14:32:12 +01:00
parent aeae6c9311
commit ea0526ae9d
8 changed files with 74 additions and 56 deletions

View file

@ -509,3 +509,12 @@ qreal AppEnv::screenRatio()
return (dpi / 96);
#endif
}
qreal AppEnv::screenRatioPR()
{
#if QT_VERSION >= 0x050600
return QGuiApplication::primaryScreen()->devicePixelRatio();
#else
return 1;
#endif
}