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

Commit 08170a32 authored by Yiwei Zhang's avatar Yiwei Zhang Committed by Android (Google) Code Review
Browse files

Merge "Get screencap working correctly in landscape mode"

parents 071d25dd ec90e583
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4858,8 +4858,8 @@ status_t SurfaceFlinger::captureScreen(const sp<IBinder>& displayToken,
        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(display->getViewport().width());
            reqHeight = uint32_t(display->getViewport().height());
        }
    }