diff options
author | Petar Šegina <psegina@google.com> | 2017-09-26 11:19:30 +0100 |
---|---|---|
committer | Petar Šegina <psegina@google.com> | 2017-09-26 11:19:30 +0100 |
commit | 47f148564d1cbca5304e5bcb9f47284555ae5344 (patch) | |
tree | 7d4061cd08722e2929adb1af01af11f0be7cb4e8 /rs/java/android/renderscript/ProgramStore.java | |
parent | 2a791ee46cf7e15da4de687c03d27724dbac186c (diff) |
Fix clip expansion amount
The clipping rectangle needs to be expanded in order to cover the
content drawn by the stroke. Since half the stroke is drawn on one side
of the bounding rectangle and the other half on the other side, we need
to expand the clip by half of the stroke width.
The previous implementation expanded the clipping rectangle by the whole
stroke width, this allowed for a part of the rounded rectangle to draw
outside of the bounding box.
Test: manual - verify smart select still works and that the rounded
rectangle does not draw outside of the bounding box
Change-Id: I8ca80b7b224d1ac2aa7638405b3cf516bd04b39f
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions