From ab7c13f96a3c883fb4c93749c2e6c68155d3ad95 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Mon, 25 Jul 2011 13:57:16 -0700 Subject: [PATCH] fix a typo that prevented preserveRects() to work properly this caused drawing artifacts during the screen rotation animation of SurfaceView. Change-Id: Idcc996b6ca2e346135dd2264959670c0b086d4cb --- services/surfaceflinger/Transform.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/surfaceflinger/Transform.cpp b/services/surfaceflinger/Transform.cpp index 24d5f9ac98..05b7527563 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 -- 2.11.0