Yeet the last of wxSize/wxPoint to stop leaking gdicmn everywhere
This commit is contained in:
@@ -169,14 +169,6 @@ std::string EDA_UNIT_UTILS::FormatInternalUnits( const EDA_IU_SCALE& aIuScale, i
|
||||
}
|
||||
|
||||
|
||||
std::string EDA_UNIT_UTILS::FormatInternalUnits( const EDA_IU_SCALE& aIuScale,
|
||||
const wxPoint& aPoint )
|
||||
{
|
||||
return FormatInternalUnits( aIuScale, aPoint.x ) + " "
|
||||
+ FormatInternalUnits( aIuScale, aPoint.y );
|
||||
}
|
||||
|
||||
|
||||
std::string EDA_UNIT_UTILS::FormatInternalUnits( const EDA_IU_SCALE& aIuScale,
|
||||
const VECTOR2I& aPoint )
|
||||
{
|
||||
@@ -185,12 +177,6 @@ std::string EDA_UNIT_UTILS::FormatInternalUnits( const EDA_IU_SCALE& aIuScale,
|
||||
}
|
||||
|
||||
|
||||
std::string EDA_UNIT_UTILS::FormatInternalUnits( const EDA_IU_SCALE& aIuScale, const wxSize& aSize )
|
||||
{
|
||||
return FormatInternalUnits( aIuScale, aSize.GetWidth() ) + " "
|
||||
+ FormatInternalUnits( aIuScale, aSize.GetHeight() );
|
||||
}
|
||||
|
||||
#define IU_TO_MM( x, scale ) ( x / scale.IU_PER_MM )
|
||||
#define IU_TO_IN( x, scale ) ( x / scale.IU_PER_MILS / 1000 )
|
||||
#define IU_TO_MILS( x, scale ) ( x / scale.IU_PER_MILS )
|
||||
|
||||
Reference in New Issue
Block a user