diff options
author | Chris Craik <ccraik@google.com> | 2012-10-12 13:00:58 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-10-12 13:00:59 -0700 |
commit | 3add43ab0e26c9fd44d4dea683092807229eaa59 (patch) | |
tree | 9602b05dc6724242394e2ddf563bd1769f5755ab /libs | |
parent | bfbd58de8d0d5487f2d8a67e99a9854019c22039 (diff) | |
parent | 2154af209f6d269e29c6e991ce6c1349dfc85b93 (diff) | |
download | frameworks_base-3add43ab0e26c9fd44d4dea683092807229eaa59.zip frameworks_base-3add43ab0e26c9fd44d4dea683092807229eaa59.tar.gz frameworks_base-3add43ab0e26c9fd44d4dea683092807229eaa59.tar.bz2 |
Merge "fix stroke sub-hairline threshold" into jb-mr1-dev
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; } |