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

Commit deead5ec authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 5685999 from feb6af0e to qt-release

Change-Id: Ic056e15d0f8e4d55078146df310f109dc528d806
parents c83cb114 feb6af0e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -5613,6 +5613,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);
    }