mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-16 00:34:19 +00:00
Specialised a recent OSX window resizing change to only apply on 10.11 or later, due to problems on older OS versions.
This commit is contained in:
parent
51165c0f6b
commit
e1ff30d8bf
1 changed files with 6 additions and 1 deletions
|
|
@ -254,8 +254,13 @@ public:
|
|||
}
|
||||
else
|
||||
{
|
||||
// Repaint behaviour of setFrame seemed to change in 10.11, and the drawing became synchronous,
|
||||
// causing performance issues. But sending an async update causes flickering in older versions,
|
||||
// hence this version check to use the old behaviour on pre 10.11 machines
|
||||
static bool isPre10_11 = SystemStats::getOperatingSystemType() <= SystemStats::MacOSX_10_10;
|
||||
|
||||
[window setFrame: [window frameRectForContentRect: flippedScreenRect (r)]
|
||||
display: false];
|
||||
display: isPre10_11];
|
||||
}
|
||||
|
||||
if (oldViewSize.width != r.size.width || oldViewSize.height != r.size.height)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue