Change fractional point size from float to double

There doesn't seem to be any compelling reason to use float. Using double
is simpler, and avoids otherwise unnecessary float<->double conversions.
This commit is contained in:
Paul Cornett
2020-04-21 09:00:04 -07:00
parent d551c156c4
commit 896512c732
29 changed files with 129 additions and 168 deletions

View File

@@ -241,7 +241,7 @@ int wxFont::GetPointSize() const
return M_FONTDATA.wxNativeFontInfo::GetPointSize();
}
float wxFont::GetFractionalPointSize() const
double wxFont::GetFractionalPointSize() const
{
return M_FONTDATA.GetFractionalPointSize();
}
@@ -287,7 +287,7 @@ bool wxFont::GetStrikethrough() const
}
void wxFont::SetFractionalPointSize(float pointSize)
void wxFont::SetFractionalPointSize(double pointSize)
{
AllocExclusive();
@@ -390,7 +390,7 @@ void wxNativeFontInfo::Init()
{
}
float wxNativeFontInfo::GetFractionalPointSize() const
double wxNativeFontInfo::GetFractionalPointSize() const
{
return m_qtFont.pointSizeF();
}
@@ -501,7 +501,7 @@ wxFontEncoding wxNativeFontInfo::GetEncoding() const
return wxFONTENCODING_UTF8;
}
void wxNativeFontInfo::SetFractionalPointSize(float pointsize)
void wxNativeFontInfo::SetFractionalPointSize(double pointsize)
{
m_qtFont.setPointSizeF(pointsize);
}