mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
iOS: Avoid unnecessary numeric conversion
This commit is contained in:
parent
6efb77bed3
commit
8fb4541fdb
1 changed files with 1 additions and 1 deletions
|
|
@ -680,7 +680,7 @@ static BorderSize<int> getSafeAreaInsets (float masterScale)
|
|||
#if defined (__IPHONE_11_0) && __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_11_0
|
||||
UIEdgeInsets safeInsets = TemporaryWindow().window.safeAreaInsets;
|
||||
|
||||
auto getInset = [&] (float original) { return roundToInt (original / masterScale); };
|
||||
auto getInset = [&] (CGFloat original) { return roundToInt (original / masterScale); };
|
||||
|
||||
return { getInset (safeInsets.top), getInset (safeInsets.left),
|
||||
getInset (safeInsets.bottom), getInset (safeInsets.right) };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue