From 0e7497957a029fd123b429388d84bba2930fddef Mon Sep 17 00:00:00 2001 From: Christopher Ferris Date: Mon, 23 Mar 2015 14:32:15 -0700 Subject: [PATCH] Fix mistake using width instead of height. Found by rodrigo.chiossi@intel.com. Change-Id: I49d590ed39f6b47ba58a77a75d66b2964ea1cb1d --- services/surfaceflinger/SurfaceFlinger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index 7a1f2439f..9dc140efd 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(reqWidth) != hw_w || - static_cast(reqWidth) != hw_h; + static_cast(reqHeight) != hw_h; // if a default or invalid sourceCrop is passed in, set reasonable values if (sourceCrop.width() == 0 || sourceCrop.height() == 0 ||