From 897f5562f9dfb213805d8a84c7de3b668a1380ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Tue, 4 Feb 2014 22:54:54 +0100 Subject: [PATCH] Remove transform again from drawing coord conversion --- src/servers/app/DrawState.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/servers/app/DrawState.cpp b/src/servers/app/DrawState.cpp index a673aea410..3b0f3ef370 100644 --- a/src/servers/app/DrawState.cpp +++ b/src/servers/app/DrawState.cpp @@ -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) {