From 46118470abed7a4f4ee2398c90f8855988820f58 Mon Sep 17 00:00:00 2001 From: Matt Gajownik Date: Wed, 13 Jan 2021 20:26:35 +1100 Subject: [PATCH] UI: Only apply passthrough DPI scaling on Windows Fixes #4031 It seems Qt on various flavours of Linux behaves erratically when scaled, and for the moment macOS doesn't require fractional scaling support. This commit can be reverted when Qt fixes issues on their side. --- UI/obs-app.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/obs-app.cpp b/UI/obs-app.cpp index 2c9fb4b68..25dd0c08b 100644 --- a/UI/obs-app.cpp +++ b/UI/obs-app.cpp @@ -1934,7 +1934,7 @@ static int run_program(fstream &logFile, int argc, char *argv[]) #if (QT_VERSION >= QT_VERSION_CHECK(5, 11, 0)) QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); #endif -#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)) +#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)) && defined(_WIN32) QGuiApplication::setHighDpiScaleFactorRoundingPolicy( Qt::HighDpiScaleFactorRoundingPolicy::PassThrough); #endif