summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger
diff options
context:
space:
mode:
authorChristopher N. Hesse <raymanfx@gmail.com>2016-06-17 16:10:21 +0200
committerChristopher N. Hesse <raymanfx@gmail.com>2016-06-17 16:10:21 +0200
commit2a2eaab883bd243493407cce47382d372f207492 (patch)
tree2f4836eb41fbe87c8ba998b9712c9d4610a77953 /services/surfaceflinger
parent508eb7749a4ce988d4d1a97377254add24b9bc40 (diff)
downloadframeworks_native-2a2eaab883bd243493407cce47382d372f207492.zip
frameworks_native-2a2eaab883bd243493407cce47382d372f207492.tar.gz
frameworks_native-2a2eaab883bd243493407cce47382d372f207492.tar.bz2
sf: Only apply hwrotation to primary displays
Change-Id: Ib51030cec5ce7609f12be9a5e46310f75442b680
Diffstat (limited to 'services/surfaceflinger')
-rw-r--r--services/surfaceflinger/DisplayDevice.cpp2
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;