summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2012-10-12 13:00:58 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-10-12 13:00:59 -0700
commit3add43ab0e26c9fd44d4dea683092807229eaa59 (patch)
tree9602b05dc6724242394e2ddf563bd1769f5755ab /libs
parentbfbd58de8d0d5487f2d8a67e99a9854019c22039 (diff)
parent2154af209f6d269e29c6e991ce6c1349dfc85b93 (diff)
downloadframeworks_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.cpp2
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;
}