mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-11 23:54:18 +00:00
macOS: Don't apply backing scale factor when using the CoreGraphics renderer
This commit is contained in:
parent
3d8acd864a
commit
90d65375df
1 changed files with 7 additions and 3 deletions
|
|
@ -852,9 +852,13 @@ public:
|
|||
float displayScale = 1.0f;
|
||||
|
||||
#if defined (MAC_OS_X_VERSION_10_7) && (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_7)
|
||||
NSScreen* screen = [[view window] screen];
|
||||
if ([screen respondsToSelector: @selector (backingScaleFactor)])
|
||||
displayScale = (float) screen.backingScaleFactor;
|
||||
if (! usingCoreGraphics)
|
||||
{
|
||||
NSScreen* screen = [[view window] screen];
|
||||
|
||||
if ([screen respondsToSelector: @selector (backingScaleFactor)])
|
||||
displayScale = (float) screen.backingScaleFactor;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if USE_COREGRAPHICS_RENDERING && JUCE_COREGRAPHICS_RENDER_WITH_MULTIPLE_PAINT_CALLS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue