commit | b5ab4173e0927e4668a45298c9900cd8007584e1 | [log] [tgz] |
---|---|---|
author | Romain Guy <romainguy@google.com> | Fri Sep 17 15:36:56 2010 -0700 |
committer | Romain Guy <romainguy@google.com> | Fri Sep 17 15:36:56 2010 -0700 |
tree | e059836b7a463cad61aed46d8bd8942836018e7b | |
parent | c95c8d6bf8fda5c4e8ebd0033b789be7868e6e07 [diff] [blame] |
Fix positioning of 1 pixel wide lines (esp. non AA lines.) Change-Id: Ic155cac72f351edae35dffdfbb236954f57ba7de
diff --git a/libs/hwui/Line.h b/libs/hwui/Line.h index 820793c..64bdd6a 100644 --- a/libs/hwui/Line.h +++ b/libs/hwui/Line.h
@@ -93,7 +93,7 @@ mXDivs, mYDivs, mXDivsCount, mYDivsCount); tx = -gLineAABias; - ty = lineWidth == 1.0f ? -gLineAABias : -half - gLineAABias; + ty = lineWidth <= 1.0f ? -gLineAABias : -half - gLineAABias; } inline GLvoid* getVertices() const {