diff options
author | Christopher Ferris <cferris@google.com> | 2015-03-23 14:32:15 -0700 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2015-03-23 14:37:26 -0700 |
commit | 0e7497957a029fd123b429388d84bba2930fddef (patch) | |
tree | a28d8816b43ff697d1543b391a30d6d1fb9c568d /services/surfaceflinger/SurfaceFlinger.cpp | |
parent | 6dad1713040a46ec6e2ca1b0df2cbe4240e9e2e9 (diff) | |
download | frameworks_native-0e7497957a029fd123b429388d84bba2930fddef.zip frameworks_native-0e7497957a029fd123b429388d84bba2930fddef.tar.gz frameworks_native-0e7497957a029fd123b429388d84bba2930fddef.tar.bz2 |
Fix mistake using width instead of height.
Found by rodrigo.chiossi@intel.com.
Change-Id: I49d590ed39f6b47ba58a77a75d66b2964ea1cb1d
Diffstat (limited to 'services/surfaceflinger/SurfaceFlinger.cpp')
-rw-r--r-- | services/surfaceflinger/SurfaceFlinger.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index 7a1f243..9dc140e 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -3123,7 +3123,7 @@ void SurfaceFlinger::renderScreenImplLocked( const int32_t hw_w = hw->getWidth(); const int32_t hw_h = hw->getHeight(); const bool filtering = static_cast<int32_t>(reqWidth) != hw_w || - static_cast<int32_t>(reqWidth) != hw_h; + static_cast<int32_t>(reqHeight) != hw_h; // if a default or invalid sourceCrop is passed in, set reasonable values if (sourceCrop.width() == 0 || sourceCrop.height() == 0 || |