OSDN Git Service

fix part of [Issue 3114236] [Crespo] The order of FLIP_H and ROT_90 is different...
authorMathias Agopian <mathias@google.com>
Thu, 21 Oct 2010 07:07:32 +0000 (00:07 -0700)
committerMathias Agopian <mathias@google.com>
Thu, 21 Oct 2010 07:07:32 +0000 (00:07 -0700)
there are a typo in hardware.h where FLIP_V and FLIP_H were inverted.
this change will probably break all the overlay HALs which
implement FLIP_V/H, which thanksfully are not many.

Change-Id: Ie824d9a924354d637e44eb6476cb4e5e945c3594

include/hardware/overlay.h

index 42fb014..c56a974 100644 (file)
@@ -54,9 +54,9 @@ enum {
 /* values for copybit_set_parameter(OVERLAY_TRANSFORM) */
 enum {
     /* flip source image horizontally */
-    OVERLAY_TRANSFORM_FLIP_H    = HAL_TRANSFORM_FLIP_V,
+    OVERLAY_TRANSFORM_FLIP_H    = HAL_TRANSFORM_FLIP_H,
     /* flip source image vertically */
-    OVERLAY_TRANSFORM_FLIP_V    = HAL_TRANSFORM_FLIP_H,
+    OVERLAY_TRANSFORM_FLIP_V    = HAL_TRANSFORM_FLIP_V,
     /* rotate source image 90 degrees */
     OVERLAY_TRANSFORM_ROT_90    = HAL_TRANSFORM_ROT_90,
     /* rotate source image 180 degrees */