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

* commit '3add43ab0e26c9fd44d4dea683092807229eaa59':
  fix stroke sub-hairline threshold
This commit is contained in:
Chris Craik
2012-10-12 13:03:50 -07:00
committed by Android Git Automerger

View File

@@ -215,7 +215,7 @@ void getStrokeVerticesFromPerimeterAA(const Vector<Vertex>& perimeter, float hal
// alpha value (TODO: support different X/Y scale)
float maxAlpha = 1.0f;
if (halfStrokeWidth != 0 && inverseScaleX == inverseScaleY &&
halfStrokeWidth * inverseScaleX < 1.0f) {
halfStrokeWidth * inverseScaleX < 0.5f) {
maxAlpha *= (2 * halfStrokeWidth) / inverseScaleX;
halfStrokeWidth = 0.0f;
}