Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 222f3317 authored by Chris Craik's avatar Chris Craik
Browse files

Fix is_zero check

Fixes x/y rotations which were incorrectly disabled due to this check.

Change-Id: Ie8a7c8904c729a91b18243323b0be6110e743137
parent fbb54b83
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 {