summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2012-10-12 11:31:37 -0700
committerChris Craik <ccraik@google.com>2012-10-12 12:45:08 -0700
commit2154af209f6d269e29c6e991ce6c1349dfc85b93 (patch)
tree87c7afecf1f03be1f411f78c0a2a393cc29c100a /libs
parentc0c0c0e612e1ccf1e55eb2a9338ddfff40d8d7f2 (diff)
downloadframeworks_base-2154af209f6d269e29c6e991ce6c1349dfc85b93.zip
frameworks_base-2154af209f6d269e29c6e991ce6c1349dfc85b93.tar.gz
frameworks_base-2154af209f6d269e29c6e991ce6c1349dfc85b93.tar.bz2
fix stroke sub-hairline threshold
bug:7339943 Change-Id: I4051a03f4cd5bd2c313840208540601fb7a056e2
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;
}