From 8b5d5ff3d6b969e25f9e71c5c9139826966cbec6 Mon Sep 17 00:00:00 2001 From: Chelsea Jaggi Date: Tue, 10 Mar 2020 14:26:22 -0700 Subject: [PATCH] Set a static DPI before rendering in-VR overlay (#370) We expect a standard 96DPI display rendering when creating the overlay, but system DPI can interfere with this. Setting QCoreApplication::setAttribute(Qt::AA_Use96Dpi) resolves this. https://github.com/OpenVR-Advanced-Settings/OpenVR-AdvancedSettings/issues/369 --- src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.cpp b/src/main.cpp index 2594f5c..5fd7f18 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -12,6 +12,7 @@ int main( int argc, char* argv[] ) LOG( INFO ) << settings::getSettingsAndValues(); + QCoreApplication::setAttribute( Qt::AA_Use96Dpi ); MyQApplication mainEventLoop( argc, argv ); mainEventLoop.setOrganizationName( application_strings::applicationOrganizationName );