summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2014-04-22 10:08:27 -0700
committerChris Craik <ccraik@google.com>2014-04-22 10:09:03 -0700
commit222f33178b1547b70350ead660070eb01e56eac2 (patch)
tree967ba6860d418ad1997bff7fdce0e40c1d2dab14 /libs
parentfbb54b8363b66e0b22d519ee20d1a50e8b5340ee (diff)
downloadframeworks_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.cpp2
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 {