OSDN Git Service

sf: Only apply hwrotation to primary displays
authorChristopher N. Hesse <raymanfx@gmail.com>
Fri, 17 Jun 2016 14:10:21 +0000 (16:10 +0200)
committerChristopher N. Hesse <raymanfx@gmail.com>
Fri, 17 Jun 2016 14:10:21 +0000 (16:10 +0200)
Change-Id: Ib51030cec5ce7609f12be9a5e46310f75442b680

services/surfaceflinger/DisplayDevice.cpp

index f597b73..92ccf2f 100644 (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;