diff options
author | Chet Haase <chet@google.com> | 2012-05-07 13:20:00 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-05-07 13:20:00 -0700 |
commit | 4bbcae7eb80704d919d8115d523196798e208439 (patch) | |
tree | c6a50af0b94836f8adec0acbe058003e8922c51c /libs/hwui/DisplayListRenderer.h | |
parent | d8efe42496806b483bbacea28d2456e8b2eac4fb (diff) | |
parent | d3efd6920e64d0207a0655640297d87d4937ee27 (diff) | |
download | frameworks_base-4bbcae7eb80704d919d8115d523196798e208439.zip frameworks_base-4bbcae7eb80704d919d8115d523196798e208439.tar.gz frameworks_base-4bbcae7eb80704d919d8115d523196798e208439.tar.bz2 |
Merge "Fix issue where scale-animating text would jump temporarily a few pixels" into jb-dev
Diffstat (limited to 'libs/hwui/DisplayListRenderer.h')
-rw-r--r-- | libs/hwui/DisplayListRenderer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/DisplayListRenderer.h b/libs/hwui/DisplayListRenderer.h index 4edefd5..5ce770d 100644 --- a/libs/hwui/DisplayListRenderer.h +++ b/libs/hwui/DisplayListRenderer.h @@ -255,7 +255,7 @@ public: if (scaleY != mScaleY) { mScaleY = scaleY; mMatrixDirty = true; - if (ALMOST_EQUAL(mScaleX, 1) && ALMOST_EQUAL(mScaleY, 1)) { + if (mScaleX == 1.0f && mScaleY == 1.0f) { mMatrixFlags &= ~SCALE; } else { mMatrixFlags |= SCALE; |