diff options
author | Chris Craik <ccraik@google.com> | 2012-10-12 13:06:19 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-10-12 13:06:19 -0700 |
commit | 2daca75ab1a7ef3d215db686b1cef906aeff5f82 (patch) | |
tree | d1f8171c102471513643447864a649913fdffeff /libs | |
parent | 4361b2e8624a84e806b89fab57cf58f8e829444b (diff) | |
parent | fb0bfa2b03a985c4c3cb548fbd56b4e1d4b62417 (diff) | |
download | frameworks_base-2daca75ab1a7ef3d215db686b1cef906aeff5f82.zip frameworks_base-2daca75ab1a7ef3d215db686b1cef906aeff5f82.tar.gz frameworks_base-2daca75ab1a7ef3d215db686b1cef906aeff5f82.tar.bz2 |
am fb0bfa2b: am 3add43ab: Merge "fix stroke sub-hairline threshold" into jb-mr1-dev
* commit 'fb0bfa2b03a985c4c3cb548fbd56b4e1d4b62417':
fix stroke sub-hairline threshold
Diffstat (limited to 'libs')
-rw-r--r-- | libs/hwui/PathRenderer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/PathRenderer.cpp b/libs/hwui/PathRenderer.cpp index 5b55c2b..58d6cb8 100644 --- a/libs/hwui/PathRenderer.cpp +++ b/libs/hwui/PathRenderer.cpp @@ -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; } |