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

Commit 86bdb2f9 authored by Mathias Agopian's avatar Mathias Agopian
Browse files

fix [3260137] Sometimes front-facing camera mirroring is wrong

make sure to take the buffer's orientation into account.

Change-Id: I9fef89e66368ad2dec1cb8c7b77ac2b3b4858efb
parent c5b4c45b
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -204,7 +204,8 @@ void Layer::setGeometry(hwc_layer_t* hwcl)
        return;
        return;
    }
    }


    hwcl->transform = mOrientation;
    Transform tr(Transform(mOrientation) * Transform(mBufferTransform));
    hwcl->transform = tr.getOrientation();


    if (needsBlending()) {
    if (needsBlending()) {
        hwcl->blending = mPremultipliedAlpha ?
        hwcl->blending = mPremultipliedAlpha ?