diff options
author | Mathias Agopian <mathias@google.com> | 2011-07-25 13:57:16 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2011-07-25 13:57:16 -0700 |
commit | 9a817a35f11cb118209a3238451603258ae7f105 (patch) | |
tree | eed99cf37fc29fe29b45a4635c1063ef60f903d5 | |
parent | c69aea2409ba4ec4db17a30357568dd31ced1516 (diff) | |
download | frameworks_base-9a817a35f11cb118209a3238451603258ae7f105.zip frameworks_base-9a817a35f11cb118209a3238451603258ae7f105.tar.gz frameworks_base-9a817a35f11cb118209a3238451603258ae7f105.tar.bz2 |
fix a typo that prevented preserveRects() to work properly
this caused drawing artifacts during the screen rotation
animation of SurfaceView.
Change-Id: Idcc996b6ca2e346135dd2264959670c0b086d4cb
-rw-r--r-- | services/surfaceflinger/Transform.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/surfaceflinger/Transform.cpp b/services/surfaceflinger/Transform.cpp index 24d5f9a..05b7527 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 |