sf: Only apply hwrotation to primary displays
Change-Id: Ib51030cec5ce7609f12be9a5e46310f75442b680
This commit is contained in:
parent
508eb7749a
commit
2a2eaab883
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user