summaryrefslogtreecommitdiff
path: root/core/fxcrt/fx_coordinates.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcrt/fx_coordinates.cpp')
-rw-r--r--core/fxcrt/fx_coordinates.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/fxcrt/fx_coordinates.cpp b/core/fxcrt/fx_coordinates.cpp
index ac13a32329..69fedb5522 100644
--- a/core/fxcrt/fx_coordinates.cpp
+++ b/core/fxcrt/fx_coordinates.cpp
@@ -271,10 +271,10 @@ void CFX_Matrix::Rotate(float fRadian, bool bPrepended) {
bPrepended);
}
-void CFX_Matrix::RotateAt(float fRadian, float dx, float dy, bool bPrepended) {
- Translate(dx, dy, bPrepended);
+void CFX_Matrix::RotateAt(float fRadian, float x, float y, bool bPrepended) {
+ Translate(-x, -y, bPrepended);
Rotate(fRadian, bPrepended);
- Translate(-dx, -dy, bPrepended);
+ Translate(x, y, bPrepended);
}
void CFX_Matrix::Shear(float fAlphaRadian, float fBetaRadian, bool bPrepended) {