mirror of
https://review.haiku-os.org/haiku
synced 2025-01-31 18:56:49 +01:00
Remove transform again from drawing coord conversion
This commit is contained in:
parent
a6db6bd40f
commit
897f5562f9
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user