am cf6b2765: Merge "fix a bug where FLIP_H would do a 180 rotation" into gingerbread

Merge commit 'cf6b2765ae7ea6305754e253264012b8f0498f7b' into gingerbread-plus-aosp

* commit 'cf6b2765ae7ea6305754e253264012b8f0498f7b':
  fix a bug where FLIP_H would do a 180 rotation
This commit is contained in:
Mathias Agopian
2010-10-11 14:40:02 -07:00
committed by Android Git Automerger

View File

@@ -444,11 +444,11 @@ void LayerBase::drawWithOpenGL(const Region& clip, const Texture& texture) const
} }
if (transform & HAL_TRANSFORM_FLIP_V) { if (transform & HAL_TRANSFORM_FLIP_V) {
swap(vLT, vLB); swap(vLT, vLB);
swap(vRB, vRT); swap(vRT, vRB);
} }
if (transform & HAL_TRANSFORM_FLIP_H) { if (transform & HAL_TRANSFORM_FLIP_H) {
swap(vLT, vRB); swap(vLT, vRT);
swap(vLB, vRT); swap(vLB, vRB);
} }
TexCoords texCoords[4]; TexCoords texCoords[4];