diff options
author | Christopher N. Hesse <raymanfx@gmail.com> | 2016-06-17 16:10:21 +0200 |
---|---|---|
committer | Christopher N. Hesse <raymanfx@gmail.com> | 2016-06-17 16:10:21 +0200 |
commit | 2a2eaab883bd243493407cce47382d372f207492 (patch) | |
tree | 2f4836eb41fbe87c8ba998b9712c9d4610a77953 | |
parent | 508eb7749a4ce988d4d1a97377254add24b9bc40 (diff) | |
download | frameworks_native-2a2eaab883bd243493407cce47382d372f207492.zip frameworks_native-2a2eaab883bd243493407cce47382d372f207492.tar.gz frameworks_native-2a2eaab883bd243493407cce47382d372f207492.tar.bz2 |
sf: Only apply hwrotation to primary displays
Change-Id: Ib51030cec5ce7609f12be9a5e46310f75442b680
-rw-r--r-- | services/surfaceflinger/DisplayDevice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/surfaceflinger/DisplayDevice.cpp b/services/surfaceflinger/DisplayDevice.cpp index f597b73..92ccf2f 100644 --- a/services/surfaceflinger/DisplayDevice.cpp +++ b/services/surfaceflinger/DisplayDevice.cpp @@ -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; |