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

Commit 17e17e2f authored by Mihai Popa's avatar Mihai Popa Committed by Android (Google) Code Review
Browse files

Merge "[Magnifier-71] Adapt surface buffer to elevation"

parents 3034048e bd391f9a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -837,8 +837,8 @@ public final class Magnifier {

            mContentWidth = width;
            mContentHeight = height;
            mOffsetX = (int) (0.1f * width);
            mOffsetY = (int) (0.1f * height);
            mOffsetX = (int) (1.05f * elevation);
            mOffsetY = (int) (1.05f * elevation);
            // Setup the surface we will use for drawing the content and shadow.
            mSurfaceWidth = mContentWidth + 2 * mOffsetX;
            mSurfaceHeight = mContentHeight + 2 * mOffsetY;