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

Commit a9dc9fbc authored by Scott Brady's avatar Scott Brady Committed by Gerrit Code Review
Browse files

Use standard formula for calculating hwrotation

Change-Id: I12efbce4a8107a1058921e5ec4cb4b6e0ef072ab
parent 7a3709b2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -133,7 +133,7 @@ final class ElectronBeam {
        mDisplay.getDisplayInfo(mDisplayInfo);
        mDisplayLayerStack = mDisplay.getLayerStack();
        mDisplayRotation = (mDisplayInfo.rotation +
                (4 - android.os.SystemProperties.getInt("ro.sf.hwrotation", 0) / 90)) % 4;
                android.os.SystemProperties.getInt("ro.sf.hwrotation", 0) / 90) % 4;
        if (mDisplayRotation == Surface.ROTATION_90
                || mDisplayRotation == Surface.ROTATION_270) {
            mDisplayWidth = mDisplayInfo.logicalHeight;