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

Commit ff98f3e5 authored by Mathias Agopian's avatar Mathias Agopian Committed by Android Git Automerger
Browse files

am 338acd68: am 86206b41: Merge "fix initialization of framebuffer target crop...

am 338acd68: am 86206b41: Merge "fix initialization of framebuffer target crop rect on hwc 1.3" into klp-dev

* commit '338acd68':
  fix initialization of framebuffer target crop rect on hwc 1.3
parents 2b3d0c40 338acd68
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -523,7 +523,14 @@ status_t HWComposer::createWorkList(int32_t id, size_t numLayers) {
            disp.framebufferTarget->handle = disp.fbTargetHandle;
            disp.framebufferTarget->transform = 0;
            disp.framebufferTarget->blending = HWC_BLENDING_PREMULT;
            if (hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_3)) {
                disp.framebufferTarget->sourceCropf.left = 0;
                disp.framebufferTarget->sourceCropf.top = 0;
                disp.framebufferTarget->sourceCropf.right = disp.width;
                disp.framebufferTarget->sourceCropf.bottom = disp.height;
            } else {
                disp.framebufferTarget->sourceCrop = r;
            }
            disp.framebufferTarget->displayFrame = r;
            disp.framebufferTarget->visibleRegionScreen.numRects = 1;
            disp.framebufferTarget->visibleRegionScreen.rects =