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

Commit b9fd6249 authored by Yiwei Zhang's avatar Yiwei Zhang Committed by android-build-merger
Browse files

Merge "Get screencap working correctly in landscape mode" into pi-dev

am: e06ad77b

Change-Id: If90a9beb0d948faedc91bfe9edaab146471d85a0
parents 4c00ac3c e06ad77b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4848,8 +4848,8 @@ status_t SurfaceFlinger::captureScreen(const sp<IBinder>& display, sp<GraphicBuf
        sourceCrop.set(dispScissor);
        // adb shell screencap will default reqWidth and reqHeight to zeros.
        if (reqWidth == 0 || reqHeight == 0) {
            reqWidth = uint32_t(dispScissor.width());
            reqHeight = uint32_t(dispScissor.height());
            reqWidth = uint32_t(device->getViewport().width());
            reqHeight = uint32_t(device->getViewport().height());
        }
    }