From 190ca02e069f37e69dea24444e68139a91591a4e Mon Sep 17 00:00:00 2001 From: ed Date: Wed, 12 Sep 2018 09:35:20 +0100 Subject: [PATCH] Windows: Ensure that the initial screen scale is correct when creating the OpenGL native context --- modules/juce_opengl/native/juce_OpenGL_win32.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/juce_opengl/native/juce_OpenGL_win32.h b/modules/juce_opengl/native/juce_OpenGL_win32.h index a80370aa51..3f3f5c31be 100644 --- a/modules/juce_opengl/native/juce_OpenGL_win32.h +++ b/modules/juce_opengl/native/juce_OpenGL_win32.h @@ -204,12 +204,12 @@ private: if (auto* peer = topComp->getPeer()) { - updateWindowPosition (peer->getAreaCoveredBy (component)); - #if JUCE_WIN_PER_MONITOR_DPI_AWARE peer->addScaleFactorListener (this); safeComponent = Component::SafePointer (&component); #endif + + updateWindowPosition (peer->getAreaCoveredBy (component)); } nativeWindow->setVisible (true);