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

Commit 2a2eaab8 authored by Christopher N. Hesse's avatar Christopher N. Hesse
Browse files

sf: Only apply hwrotation to primary displays

Change-Id: Ib51030cec5ce7609f12be9a5e46310f75442b680
parent 508eb774
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -401,7 +401,7 @@ status_t DisplayDevice::orientationToTransfrom(
    property_get("ro.sf.hwrotation", value, "0");
    int additionalRot = atoi(value);

    if (additionalRot) {
    if (additionalRot && mType == DISPLAY_PRIMARY) {
        additionalRot /= 90;
        if (orientation == DisplayState::eOrientationUnchanged) {
            orientation = additionalRot;