diff options
author | Chris Craik <ccraik@google.com> | 2014-04-22 10:08:27 -0700 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2014-04-22 10:09:03 -0700 |
commit | 222f33178b1547b70350ead660070eb01e56eac2 (patch) | |
tree | 967ba6860d418ad1997bff7fdce0e40c1d2dab14 /libs | |
parent | fbb54b8363b66e0b22d519ee20d1a50e8b5340ee (diff) | |
download | frameworks_base-222f33178b1547b70350ead660070eb01e56eac2.zip frameworks_base-222f33178b1547b70350ead660070eb01e56eac2.tar.gz frameworks_base-222f33178b1547b70350ead660070eb01e56eac2.tar.bz2 |
Fix is_zero check
Fixes x/y rotations which were incorrectly disabled due to this check.
Change-Id: Ie8a7c8904c729a91b18243323b0be6110e743137
Diffstat (limited to 'libs')
-rw-r--r-- | libs/hwui/RenderProperties.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/RenderProperties.cpp b/libs/hwui/RenderProperties.cpp index 08829ef..58ec32d 100644 --- a/libs/hwui/RenderProperties.cpp +++ b/libs/hwui/RenderProperties.cpp @@ -34,7 +34,7 @@ #define NONZERO_EPSILON .001f static inline bool is_zero(float value) { - return (value >= -NONZERO_EPSILON) || (value <= NONZERO_EPSILON); + return (value >= -NONZERO_EPSILON) && (value <= NONZERO_EPSILON); } namespace android { |