Honour Qt scaling factor on OpenBSD

Instead of completing the list of Linux, Windows and the BSDs (NetBSD and
DragonFly would still be missing), simply flip it to not-macOS to simplify
and fix the two other aforementioned BSDs at once.
This commit is contained in:
Klemens Nanni 2023-02-22 08:12:19 +04:00
parent 63c17d78cb
commit dc1fb1b454
No known key found for this signature in database

View file

@ -159,7 +159,7 @@ main(int argc, char *argv[])
// this needs to be after setting the application name. Or how would we find our settings // this needs to be after setting the application name. Or how would we find our settings
// file then? // file then?
#if defined(Q_OS_LINUX) || defined(Q_OS_WIN) || defined(Q_OS_FREEBSD) #if !defined(Q_OS_MACOS)
if (qgetenv("QT_SCALE_FACTOR").size() == 0) { if (qgetenv("QT_SCALE_FACTOR").size() == 0) {
float factor = utils::scaleFactor(); float factor = utils::scaleFactor();