diff options
Diffstat (limited to 'libs/hwui/Rect.h')
| -rw-r--r-- | libs/hwui/Rect.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/hwui/Rect.h b/libs/hwui/Rect.h index c571ea1..8f3655c 100644 --- a/libs/hwui/Rect.h +++ b/libs/hwui/Rect.h @@ -149,10 +149,10 @@ struct Rect { } void snapToPixelBoundaries() { - left = floorf(left); - top = floorf(top); - right = ceilf(right); - bottom = ceilf(bottom); + left = floorf(left + 0.5f); + top = floorf(top + 0.5f); + right = floorf(right + 0.5f); + bottom = floorf(bottom + 0.5f); } void dump() const { |
