Loading services/surfaceflinger/SurfaceFlinger.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -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()); } } Loading Loading
services/surfaceflinger/SurfaceFlinger.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -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()); } } Loading