Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f27796cb authored by Chet Haase's avatar Chet Haase Committed by Android Git Automerger
Browse files

am 944a8725: am bee0495f: Merge "Dirty rect must expand, not contract." into jb-mr2-dev

* commit '944a8725':
  Dirty rect must expand, not contract.
parents 5d0db65e 944a8725
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -10614,10 +10614,10 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
            RectF boundingRect = mAttachInfo.mTmpTransformRect;
            boundingRect.set(rect);
            getMatrix().mapRect(boundingRect);
            rect.set((int) (boundingRect.left - 0.5f),
                    (int) (boundingRect.top - 0.5f),
                    (int) (boundingRect.right + 0.5f),
                    (int) (boundingRect.bottom + 0.5f));
            rect.set((int) Math.floor(boundingRect.left),
                    (int) Math.floor(boundingRect.top),
                    (int) Math.ceil(boundingRect.right),
                    (int) Math.ceil(boundingRect.bottom));
        }
    }