Correct the bound if it's from outside of screen am: a67e14a6e1
Change-Id: Ib43cbcc8215e7f5da7f417746ccab9bf65fb38c5
This commit is contained in:
@@ -1646,7 +1646,7 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void updateScreenMatrixForEmbeddedHierarchy() {
|
private void updateScreenMatrixForEmbeddedHierarchy() {
|
||||||
getBoundsOnScreen(mTmpRect, true);
|
getBoundsOnScreen(mTmpRect);
|
||||||
mTmpMatrix.reset();
|
mTmpMatrix.reset();
|
||||||
mTmpMatrix.setTranslate(mTmpRect.left, mTmpRect.top);
|
mTmpMatrix.setTranslate(mTmpRect.left, mTmpRect.top);
|
||||||
mTmpMatrix.postScale(mScreenRect.width() / (float) mSurfaceWidth,
|
mTmpMatrix.postScale(mScreenRect.width() / (float) mSurfaceWidth,
|
||||||
|
|||||||
Reference in New Issue
Block a user