am bee0495f: Merge "Dirty rect must expand, not contract." into jb-mr2-dev
* commit 'bee0495fa17b7e385d880f18e510e295c000cfa9': Dirty rect must expand, not contract.
This commit is contained in:
@@ -10578,10 +10578,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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user