sf: Only apply hwrotation to primary displays

Change-Id: Ib51030cec5ce7609f12be9a5e46310f75442b680
This commit is contained in:
Christopher N. Hesse 2016-06-17 16:10:21 +02:00
parent 508eb7749a
commit 2a2eaab883
1 changed files with 1 additions and 1 deletions

View File

@ -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;