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

macOS: Correctly populate display safeAreaInsets on macOS

This commit is contained in:
reuk 2023-10-17 20:17:30 +01:00
parent a7d1e61a55
commit 384ddee376
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C
3 changed files with 26 additions and 23 deletions

View file

@ -47,6 +47,15 @@ struct WindowingHelpers
{
return Process::isForegroundProcess() || isEmbeddedInForegroundProcess (viewComponent);
}
template <typename Value>
static BorderSize<int> roundToInt (BorderSize<Value> border)
{
return { ::juce::roundToInt (border.getTop()),
::juce::roundToInt (border.getLeft()),
::juce::roundToInt (border.getBottom()),
::juce::roundToInt (border.getRight()) };
}
};
} // namespace juce::detail