| 21 | } |
| 22 | |
| 23 | float roundToPixelGrid(float point, float pointScale) { |
| 24 | return roundf(point * pointScale) / pointScale; |
| 25 | } |
| 26 | |
| 27 | float sanitizeMeasurement(float constrainedSize, float measuredSize, float pointScale, MeasureMode measureMode) { |
| 28 | measuredSize = ceilf(measuredSize * pointScale) / pointScale; |
no outgoing calls