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:
parent
4cf18f0e2c
commit
45ae98effd
1 changed files with 1 additions and 1 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue