Remove transform again from drawing coord conversion

This commit is contained in:
Stephan Aßmus 2014-02-04 22:54:54 +01:00
parent a6db6bd40f
commit 897f5562f9

View File

@ -457,26 +457,12 @@ DrawState::Transform(float* x, float* y) const
*y *= fCombinedScale;
*x += fCombinedOrigin.x;
*y += fCombinedOrigin.y;
if (!fCombinedTransform.IsIdentity()) {
double _x = *x;
double _y = *y;
fCombinedTransform.Apply(&_x, &_y);
*x = _x;
*y = _y;
}
}
void
DrawState::InverseTransform(float* x, float* y) const
{
if (!fCombinedTransform.IsIdentity()) {
double _x = *x;
double _y = *y;
fCombinedTransform.ApplyInverse(&_x, &_y);
*x = _x;
*y = _y;
}
*x -= fCombinedOrigin.x;
*y -= fCombinedOrigin.y;
if (fCombinedScale != 0.0) {