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

Component: Make getApproximateScaleFactorForComponent take a const argument

This commit is contained in:
Tom Poole 2022-03-04 09:53:28 +00:00
parent 30a516898c
commit 9ccfea9001
2 changed files with 2 additions and 2 deletions

View file

@ -1370,7 +1370,7 @@ AffineTransform Component::getTransform() const
return affineTransform != nullptr ? *affineTransform : AffineTransform();
}
float Component::getApproximateScaleFactorForComponent (Component* targetComponent)
float Component::getApproximateScaleFactorForComponent (const Component* targetComponent)
{
AffineTransform transform;

View file

@ -615,7 +615,7 @@ public:
/** Returns the approximate scale factor for a given component by traversing its parent hierarchy
and applying each transform and finally scaling this by the global scale factor.
*/
static float JUCE_CALLTYPE getApproximateScaleFactorForComponent (Component* targetComponent);
static float JUCE_CALLTYPE getApproximateScaleFactorForComponent (const Component* targetComponent);
//==============================================================================
/** Returns a proportion of the component's width.