Merge "hwc: Pass transform value while cropping dst rect"
diff --git a/libhwcomposer/hwc_mdpcomp.cpp b/libhwcomposer/hwc_mdpcomp.cpp
index ca3c4b5..760b134 100644
--- a/libhwcomposer/hwc_mdpcomp.cpp
+++ b/libhwcomposer/hwc_mdpcomp.cpp
@@ -258,7 +258,7 @@
             dst.right > hw_w || dst.bottom > hw_h) {
         ALOGD_IF(isDebug(),"%s: Destination has negative coordinates",
                 __FUNCTION__);
-        qhwc::calculate_crop_rects(crop, dst, hw_w, hw_h, 0);
+        qhwc::calculate_crop_rects(crop, dst, hw_w, hw_h, layer->transform);
 
         //Update calulated width and height
         crop_w = crop.right - crop.left;