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

This commit is contained in:
Mathias Agopian 2010-10-11 14:37:57 -07:00 committed by Android (Google) Code Review
commit 20f29b4a2a

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];