diff --git a/liboverlay/overlayLib.cpp b/liboverlay/overlayLib.cpp index 79b40a1..2d972f2 100755 --- a/liboverlay/overlayLib.cpp +++ b/liboverlay/overlayLib.cpp @@ -1621,7 +1621,8 @@ bool OverlayControlChannel::setTransform(int value, bool fetch) { mOVInfo.src_rect.y = mOVInfo.src.height - ( mOVInfo.src_rect.y + mOVInfo.src_rect.h); } - else if (val == MDP_ROT_NOP || val == MDP_ROT_180) { + else if (val == MDP_ROT_NOP || val == MDP_ROT_180 || + val == MDP_FLIP_LR || val == MDP_FLIP_UD) { int tmp = mOVInfo.src_rect.x; mOVInfo.src_rect.x = mOVInfo.src.height - (mOVInfo.src_rect.y + mOVInfo.src_rect.h); @@ -1656,7 +1657,8 @@ bool OverlayControlChannel::setTransform(int value, bool fetch) { mOVInfo.src_rect.x = mOVInfo.src.width - (mOVInfo.src_rect.x + mOVInfo.src_rect.w); } - else if (val == MDP_ROT_NOP || val == MDP_ROT_180) { + else if (val == MDP_ROT_NOP || val == MDP_ROT_180 || + val == MDP_FLIP_LR || val == MDP_FLIP_UD) { int tmp = mOVInfo.src_rect.y; mOVInfo.src_rect.y = mOVInfo.src.width - ( mOVInfo.src_rect.x + mOVInfo.src_rect.w);