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

Commit b6d49492 authored by George Mount's avatar George Mount
Browse files

Remove black borders in Manta LightCycle capture after orientation change.

 Bug 7344906

Change-Id: I70017e4479962d49aedb06ea7b050f638e00fc06
parent 88870365
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -85,6 +85,13 @@ public abstract class SurfaceTextureScreenNail implements ScreenNail,
        mHeight = height;
    }

    public void resizeTexture() {
        if (mExtTexture != null) {
            mExtTexture.setSize(mWidth, mHeight);
            setDefaultBufferSize(mSurfaceTexture, mWidth, mHeight);
        }
    }

    @Override
    public int getWidth() {
        return mWidth;