summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2012-10-12 13:06:19 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-10-12 13:06:19 -0700
commit2daca75ab1a7ef3d215db686b1cef906aeff5f82 (patch)
treed1f8171c102471513643447864a649913fdffeff /libs
parent4361b2e8624a84e806b89fab57cf58f8e829444b (diff)
parentfb0bfa2b03a985c4c3cb548fbd56b4e1d4b62417 (diff)
downloadframeworks_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.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;
}