diff --git a/services/surfaceflinger/Transform.cpp b/services/surfaceflinger/Transform.cpp index 24d5f9ac9..05b752756 100644 --- a/services/surfaceflinger/Transform.cpp +++ b/services/surfaceflinger/Transform.cpp @@ -308,7 +308,7 @@ uint32_t Transform::getOrientation() const bool Transform::preserveRects() const { - return (type() & ROT_INVALID) ? false : true; + return (getOrientation() & ROT_INVALID) ? false : true; } void Transform::dump(const char* name) const