Use SetFractionalPointSize() in wxMarkupParser code
Now that fractional sizes are supported, use them instead of rounding up to integer size.
This commit is contained in:
@@ -159,7 +159,7 @@ public:
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case wxMarkupSpanAttributes::Size_PointParts:
|
case wxMarkupSpanAttributes::Size_PointParts:
|
||||||
font.SetPointSize((spanAttr.m_fontSize + 1023)/1024);
|
font.SetFractionalPointSize(spanAttr.m_fontSize/1024.);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user