Yeet the last of wxSize/wxPoint to stop leaking gdicmn everywhere

This commit is contained in:
Marek Roszko
2023-02-18 22:57:18 -05:00
parent bc8f81b14d
commit aacc9746e3
180 changed files with 695 additions and 700 deletions
+6 -6
View File
@@ -679,9 +679,9 @@ ETEXT::ETEXT( wxXmlNode* aText )
}
wxSize ETEXT::ConvertSize() const
VECTOR2I ETEXT::ConvertSize() const
{
wxSize textsize;
VECTOR2I textsize;
if( font )
{
@@ -689,20 +689,20 @@ wxSize ETEXT::ConvertSize() const
if( fontName == "vector" )
{
textsize = wxSize( size.ToSchUnits(), size.ToSchUnits() );
textsize = VECTOR2I( size.ToSchUnits(), size.ToSchUnits() );
}
else if( fontName == "fixed" )
{
textsize = wxSize( size.ToSchUnits(), size.ToSchUnits() * 0.80 );
textsize = VECTOR2I( size.ToSchUnits(), size.ToSchUnits() * 0.80 );
}
else
{
textsize = wxSize( size.ToSchUnits(), size.ToSchUnits() );
textsize = VECTOR2I( size.ToSchUnits(), size.ToSchUnits() );
}
}
else
{
textsize = wxSize( size.ToSchUnits() * 0.85, size.ToSchUnits() );
textsize = VECTOR2I( size.ToSchUnits() * 0.85, size.ToSchUnits() );
}
return textsize;