Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb0bfa2b authored by Chris Craik's avatar Chris Craik Committed by Android Git Automerger
Browse files

am 3add43ab: Merge "fix stroke sub-hairline threshold" into jb-mr1-dev

* commit '3add43ab':
  fix stroke sub-hairline threshold
parents 6561f953 3add43ab
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -215,7 +215,7 @@ void getStrokeVerticesFromPerimeterAA(const Vector<Vertex>& perimeter, float hal
    // alpha value (TODO: support different X/Y scale)
    // alpha value (TODO: support different X/Y scale)
    float maxAlpha = 1.0f;
    float maxAlpha = 1.0f;
    if (halfStrokeWidth != 0 && inverseScaleX == inverseScaleY &&
    if (halfStrokeWidth != 0 && inverseScaleX == inverseScaleY &&
            halfStrokeWidth * inverseScaleX < 1.0f) {
            halfStrokeWidth * inverseScaleX < 0.5f) {
        maxAlpha *= (2 * halfStrokeWidth) / inverseScaleX;
        maxAlpha *= (2 * halfStrokeWidth) / inverseScaleX;
        halfStrokeWidth = 0.0f;
        halfStrokeWidth = 0.0f;
    }
    }