From b5f035501543ffcb0c68080933222cc31c9bb2b2 Mon Sep 17 00:00:00 2001 From: Shyotl Date: Tue, 7 Aug 2018 01:10:48 -0500 Subject: [PATCH] Dpi awareness should be set before creating the application window. In theory dpi awareness shouldn't have worked without this. --- indra/llwindow/llwindowwin32.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/indra/llwindow/llwindowwin32.cpp b/indra/llwindow/llwindowwin32.cpp index 346ebc0c9..754dac54a 100644 --- a/indra/llwindow/llwindowwin32.cpp +++ b/indra/llwindow/llwindowwin32.cpp @@ -671,6 +671,9 @@ LLWindowWin32::LLWindowWin32(LLWindowCallbacks* callbacks, LLCoordScreen windowPos(x,y); LLCoordScreen windowSize(window_rect.right - window_rect.left, window_rect.bottom - window_rect.top); + + initDPIAwareness(); + if (!switchContext(mFullscreen, windowSize, vsync_mode, &windowPos)) { return; @@ -683,8 +686,6 @@ LLWindowWin32::LLWindowWin32(LLWindowCallbacks* callbacks, // Initialize (boot strap) the Language text input management, // based on the system's (or user's) default settings. allowLanguageTextInput(NULL, FALSE); - - initDPIAwareness(); }