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:
@@ -94,7 +94,7 @@ wxIDirectFBFontPtr wxFont::GetDirectFBFont(bool antialiased) const
|
||||
return i ? i->GetDirectFBFont() : wxIDirectFBFontPtr();
|
||||
}
|
||||
|
||||
float wxFont::GetFractionalPointSize() const
|
||||
double wxFont::GetFractionalPointSize() const
|
||||
{
|
||||
wxCHECK_MSG( IsOk(), 0, wxT("invalid font") );
|
||||
|
||||
@@ -160,7 +160,7 @@ const wxNativeFontInfo *wxFont::GetNativeFontInfo() const
|
||||
// change font attributes
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
void wxFont::SetFractionalPointSize(float pointSize)
|
||||
void wxFont::SetFractionalPointSize(double pointSize)
|
||||
{
|
||||
AllocExclusive();
|
||||
M_FONTDATA->SetFractionalPointSize(pointSize);
|
||||
|
Reference in New Issue
Block a user