summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2012-10-12 13:03:50 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-10-12 13:03:50 -0700
commitfb0bfa2b03a985c4c3cb548fbd56b4e1d4b62417 (patch)
tree9aa93648c4f6a74bfff55c056815cac009150bf0 /libs
parent6561f953b2bfef3bb8292d07d35cadb1cd2bd9d1 (diff)
parent3add43ab0e26c9fd44d4dea683092807229eaa59 (diff)
downloadframeworks_base-fb0bfa2b03a985c4c3cb548fbd56b4e1d4b62417.zip
frameworks_base-fb0bfa2b03a985c4c3cb548fbd56b4e1d4b62417.tar.gz
frameworks_base-fb0bfa2b03a985c4c3cb548fbd56b4e1d4b62417.tar.bz2
am 3add43ab: Merge "fix stroke sub-hairline threshold" into jb-mr1-dev
* commit '3add43ab0e26c9fd44d4dea683092807229eaa59': 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;
}