1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Windows: Ensure that the initial screen scale is correct when creating the OpenGL native context

This commit is contained in:
ed 2018-09-12 09:35:20 +01:00
parent e1a8bbf020
commit 190ca02e06

View file

@ -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> (&component);
#endif
updateWindowPosition (peer->getAreaCoveredBy (component));
}
nativeWindow->setVisible (true);