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

OpenGLContext: Correctly size GL view when using a non-unity global scale

This commit is contained in:
reuk 2022-02-21 19:24:00 +00:00
parent 4cf18f0e2c
commit 45ae98effd
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11

View file

@ -359,7 +359,7 @@ public:
if (auto* peer = component.getPeer())
{
#if JUCE_MAC
const auto displayScale = [this]
const auto displayScale = Desktop::getInstance().getGlobalScaleFactor() * [this]
{
if (auto* wrapper = cvDisplayLinkWrapper.get())
if (wrapper->updateActiveDisplay())