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:
parent
e1a8bbf020
commit
190ca02e06
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue