Use SetFractionalPointSize() in wxFont::Scale()
This will result in more precise scaling.
This commit is contained in:
@@ -687,7 +687,7 @@ wxFont& wxFont::MakeStrikethrough()
|
|||||||
|
|
||||||
wxFont& wxFont::Scale(float x)
|
wxFont& wxFont::Scale(float x)
|
||||||
{
|
{
|
||||||
SetPointSize(int(x*GetPointSize() + 0.5));
|
SetFractionalPointSize(x*GetFractionalPointSize());
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user