summaryrefslogtreecommitdiffstats
path: root/libs/hwui/DisplayListRenderer.h
diff options
context:
space:
mode:
authorChet Haase <chet@google.com>2012-05-07 13:20:00 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-05-07 13:20:00 -0700
commit4bbcae7eb80704d919d8115d523196798e208439 (patch)
treec6a50af0b94836f8adec0acbe058003e8922c51c /libs/hwui/DisplayListRenderer.h
parentd8efe42496806b483bbacea28d2456e8b2eac4fb (diff)
parentd3efd6920e64d0207a0655640297d87d4937ee27 (diff)
downloadframeworks_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.h2
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;