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
This commit is contained in:
Chelsea Jaggi
2020-03-10 16:26:22 -05:00
committed by GitHub
parent d88eb0f53b
commit 8b5d5ff3d6
+1
View File
@@ -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 );