hwc: split display: Fix flip on which to do crop swap
Crop swapping is being done on V flip, rather it should be done
on H-flip in case of split displays.
Change-Id: If6136ad36731f4ac4847e94d8dfa851182f25c83
diff --git a/libhwcomposer/hwc_utils.cpp b/libhwcomposer/hwc_utils.cpp
index 1bb683a..dc8e90f 100644
--- a/libhwcomposer/hwc_utils.cpp
+++ b/libhwcomposer/hwc_utils.cpp
@@ -1048,10 +1048,10 @@
qhwc::calculate_crop_rects(tmp_cropR, tmp_dstR, scissor, 0);
}
- //When buffer is flipped, contents of mixer config also needs to swapped.
+ //When buffer is H-flipped, contents of mixer config also needs to swapped
//Not needed if the layer is confined to one half of the screen.
//If rotator has been used then it has also done the flips, so ignore them.
- if((orient & OVERLAY_TRANSFORM_FLIP_V) && lDest != OV_INVALID
+ if((orient & OVERLAY_TRANSFORM_FLIP_H) && lDest != OV_INVALID
&& rDest != OV_INVALID && (*rot) == NULL) {
hwc_rect_t new_cropR;
new_cropR.left = tmp_cropL.left;