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:
parent
d551c156c4
commit
896512c732
29 changed files with 129 additions and 168 deletions
|
|
@ -3383,7 +3383,7 @@ bool wxTextCtrl::GetStyle(long position, wxTextAttr& style)
|
|||
// Determine the pointSize that was used in SetStyle. Don't worry about
|
||||
// lfHeight or PPI, style.SetFont() will lose this information anyway.
|
||||
wxFont font(wxNativeFontInfo(lf, this));
|
||||
font.SetFractionalPointSize(cf.yHeight / 20.0f); // 1 pt = 20 twips
|
||||
font.SetFractionalPointSize(cf.yHeight / 20.0); // 1 pt = 20 twips
|
||||
if (font.IsOk())
|
||||
{
|
||||
style.SetFont(font);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue