fix a bug where FLIP_H would do a 180 rotation

Change-Id: Ie2cc4a8543a5625750c8596f87edcb66fcbca31f
This commit is contained in:
Mathias Agopian 2010-10-11 14:19:24 -07:00
parent aefa57869c
commit 3c2c54c270

View File

@ -444,11 +444,11 @@ void LayerBase::drawWithOpenGL(const Region& clip, const Texture& texture) const
}
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];