commit | 3c2c54c270d8ecefccc9a57b0f5b1d691588a258 | [log] [tgz] |
---|---|---|
author | Mathias Agopian <mathias@google.com> | Mon Oct 11 14:19:24 2010 -0700 |
committer | Mathias Agopian <mathias@google.com> | Mon Oct 11 14:19:24 2010 -0700 |
tree | dbb420fe3a5f1aeea5a76330a15fc4aa6462427d | |
parent | aefa57869c0887ba3f796c6b553008b5b741a3ed [diff] [blame] |
fix a bug where FLIP_H would do a 180 rotation Change-Id: Ie2cc4a8543a5625750c8596f87edcb66fcbca31f
diff --git a/services/surfaceflinger/LayerBase.cpp b/services/surfaceflinger/LayerBase.cpp index 758b408..069b85a 100644 --- a/services/surfaceflinger/LayerBase.cpp +++ b/services/surfaceflinger/LayerBase.cpp
@@ -444,11 +444,11 @@ } if (transform & HAL_TRANSFORM_FLIP_V) { swap(vLT, vLB); - swap(vRB, vRT); + swap(vRT, vRB); } if (transform & HAL_TRANSFORM_FLIP_H) { - swap(vLT, vRB); - swap(vLB, vRT); + swap(vLT, vRT); + swap(vLB, vRB); } TexCoords texCoords[4];