Loading services/surfaceflinger/DisplayDevice.cpp 100644 → 100755 +9 −1 Original line number Diff line number Diff line Loading @@ -416,8 +416,16 @@ void DisplayDevice::setProjection(int orientation, if (!frame.isValid()) { // the destination frame can be invalid if it has never been set, // in that case we assume the whole display frame. char value[PROPERTY_VALUE_MAX]; property_get("ro.sf.hwrotation", value, "0"); int additionalRot = atoi(value); if (additionalRot == 90 || additionalRot == 270) { frame = Rect(h, w); } else { frame = Rect(w, h); } } if (viewport.isEmpty()) { // viewport can be invalid if it has never been set, in that case Loading Loading
services/surfaceflinger/DisplayDevice.cpp 100644 → 100755 +9 −1 Original line number Diff line number Diff line Loading @@ -416,8 +416,16 @@ void DisplayDevice::setProjection(int orientation, if (!frame.isValid()) { // the destination frame can be invalid if it has never been set, // in that case we assume the whole display frame. char value[PROPERTY_VALUE_MAX]; property_get("ro.sf.hwrotation", value, "0"); int additionalRot = atoi(value); if (additionalRot == 90 || additionalRot == 270) { frame = Rect(h, w); } else { frame = Rect(w, h); } } if (viewport.isEmpty()) { // viewport can be invalid if it has never been set, in that case Loading