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:
parent
30a516898c
commit
9ccfea9001
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue