diff options
author | Steve Kondik <steve@cyngn.com> | 2015-11-10 23:58:38 +0100 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2015-11-10 23:58:46 +0100 |
commit | af9298115c39a3e3f69132409331b0ce0307ee0d (patch) | |
tree | a77f197d3f1ec63433438536654a91f3a6a28367 /services/surfaceflinger/SurfaceFlinger.cpp | |
parent | f8e2372ad7c6ab5ba0363352607f5ded918add01 (diff) | |
download | frameworks_native-af9298115c39a3e3f69132409331b0ce0307ee0d.zip frameworks_native-af9298115c39a3e3f69132409331b0ce0307ee0d.tar.gz frameworks_native-af9298115c39a3e3f69132409331b0ce0307ee0d.tar.bz2 |
Revert "surfaceflinger: Consolidate display orientation compensation hooks"
* This is completely breaking graphics.
This reverts commit f8e2372ad7c6ab5ba0363352607f5ded918add01.
Change-Id: I1d694f4228199891a191ce3fb924cec71a6100f0
Diffstat (limited to 'services/surfaceflinger/SurfaceFlinger.cpp')
-rw-r--r-- | services/surfaceflinger/SurfaceFlinger.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index 1a4aa41..429231c 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -641,7 +641,9 @@ status_t SurfaceFlinger::getDisplayConfigs(const sp<IBinder>& display, info.orientation = 0; } - int additionalRot = mDisplays[0]->getHardwareOrientation() / 90; + char value[PROPERTY_VALUE_MAX]; + property_get("ro.sf.hwrotation", value, "0"); + int additionalRot = atoi(value) / 90; if ((type == DisplayDevice::DISPLAY_PRIMARY) && (additionalRot & DisplayState::eOrientationSwapMask)) { info.h = hwConfig.width; info.w = hwConfig.height; |