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

Commit 2343d634 authored by Alec Mouri's avatar Alec Mouri Committed by android-build-merger
Browse files

Merge "[SurfaceFlinger] Fix screenshot orientation in landscape" into qt-dev am: feb6af0e

am: 56d8b625

Change-Id: Ic412e24496c2ed54d0904ecb94aef0e6dd5173ee
parents 25e884b7 56d8b625
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -5665,6 +5665,11 @@ status_t SurfaceFlinger::captureScreen(uint64_t displayOrLayerStack, Dataspace*

        captureOrientation = fromSurfaceComposerRotation(
                static_cast<ISurfaceComposer::Rotation>(display->getOrientation()));
        if (captureOrientation == ui::Transform::orientation_flags::ROT_90) {
            captureOrientation = ui::Transform::orientation_flags::ROT_270;
        } else if (captureOrientation == ui::Transform::orientation_flags::ROT_270) {
            captureOrientation = ui::Transform::orientation_flags::ROT_90;
        }
        *outDataspace =
                pickDataspaceFromColorMode(display->getCompositionDisplay()->getState().colorMode);
    }