From 3a6d435d3593e4dca950414488add7cf179595ce Mon Sep 17 00:00:00 2001 From: Naomi Luis Date: Mon, 23 May 2011 11:50:50 -0700 Subject: [PATCH] liboverlay: Set the correct FLIP information Android expects the flip to be done before the rotation. The rotator however performs the rotate operation first followed by flip operations. Set the flip information to take this into account. Change-Id: Ib59a08e72fad522b0cf70c2ac2c434e19683c356 CRs-fixed: 289118 --- liboverlay/overlayLib.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/liboverlay/overlayLib.cpp b/liboverlay/overlayLib.cpp index f9bd8b0..e9365ee 100644 --- a/liboverlay/overlayLib.cpp +++ b/liboverlay/overlayLib.cpp @@ -89,7 +89,7 @@ int overlay::get_mdp_orientation(int rotation, int flip) { case HAL_TRANSFORM_FLIP_V: switch(rotation) { case 0: return MDP_FLIP_UD; - case HAL_TRANSFORM_ROT_90: return (MDP_ROT_90 | MDP_FLIP_UD); + case HAL_TRANSFORM_ROT_90: return (MDP_ROT_90 | MDP_FLIP_LR); default: return -1; break; } @@ -97,7 +97,7 @@ int overlay::get_mdp_orientation(int rotation, int flip) { case HAL_TRANSFORM_FLIP_H: switch(rotation) { case 0: return MDP_FLIP_LR; - case HAL_TRANSFORM_ROT_90: return (MDP_ROT_90 | MDP_FLIP_LR); + case HAL_TRANSFORM_ROT_90: return (MDP_ROT_90 | MDP_FLIP_UD); default: return -1; break; }