diff options
author | Chet Haase <chet@google.com> | 2011-05-06 12:06:34 -0700 |
---|---|---|
committer | Chet Haase <chet@google.com> | 2011-05-06 12:10:54 -0700 |
commit | 99ecdc480dd4f9b550b2a62ea39f77845a4fec49 (patch) | |
tree | e85b2138c79401cb2da03cfc190ce7e81d12bc71 /tests/HwAccelerationTest | |
parent | 098b781699981a550500d2e30b4c844af63eb187 (diff) | |
download | frameworks_base-99ecdc480dd4f9b550b2a62ea39f77845a4fec49.zip frameworks_base-99ecdc480dd4f9b550b2a62ea39f77845a4fec49.tar.gz frameworks_base-99ecdc480dd4f9b550b2a62ea39f77845a4fec49.tar.bz2 |
Fix for scaled AA lines
Previously, the translucent boundary of AA lines would be scaled
by the line's transform. It should always be exactly one pixel wide
in screen space. This fix accounts for scaling for the boundary
region, and fixes some AA calculations that make wide/AA lines
more correct.
Change-Id: I30df2d5d96315bf3e7ff30be9735282fd5439a39
Diffstat (limited to 'tests/HwAccelerationTest')
-rw-r--r-- | tests/HwAccelerationTest/src/com/android/test/hwui/LinesActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/HwAccelerationTest/src/com/android/test/hwui/LinesActivity.java b/tests/HwAccelerationTest/src/com/android/test/hwui/LinesActivity.java index c3a91ce..f0abb50 100644 --- a/tests/HwAccelerationTest/src/com/android/test/hwui/LinesActivity.java +++ b/tests/HwAccelerationTest/src/com/android/test/hwui/LinesActivity.java @@ -150,7 +150,7 @@ public class LinesActivity extends Activity { canvas.save(); canvas.scale(10.0f, 10.0f); canvas.drawLine(50.0f, 40.0f, 10.0f, 40.0f, mSmallPaint); - canvas.drawLine(10.0f, 50.0f, 50.0f, 50.0f, mSmallPaint); + canvas.drawLine(10.0f, 45.0f, 20.0f, 55.0f, mSmallPaint); canvas.drawLine(10.0f, 60.0f, 50.0f, 60.0f, mHairLinePaint); canvas.restore(); } |