X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e3778b4d9c7eebc39f496a9dd055638e06fb9140..6e22db9e3e5e377d403edb6835127d6cb7b3ad0c:/tests/graphics/affinematrix.cpp?ds=sidebyside diff --git a/tests/graphics/affinematrix.cpp b/tests/graphics/affinematrix.cpp index ee6c5470dd..90f56cc1a9 100644 --- a/tests/graphics/affinematrix.cpp +++ b/tests/graphics/affinematrix.cpp @@ -112,7 +112,7 @@ void AffineTransformTestCase::VMirrorAndTranslate() wxAffineMatrix2D matrix; matrix.Mirror(wxVERTICAL); - matrix.Translate(0, m_bmpOrig.GetHeight() - 1); + matrix.Translate(0, -m_bmpOrig.GetHeight() + 1); dc.SetTransformMatrix(matrix); dc.DrawBitmap(m_bmpOrig, 0, 0); } @@ -134,7 +134,7 @@ void AffineTransformTestCase::Rotate90Clockwise() wxAffineMatrix2D matrix; matrix.Rotate(-0.5 * M_PI); - matrix.Translate(m_bmpOrig.GetHeight(), 0); + matrix.Translate(0, -m_bmpOrig.GetHeight()); dc.SetTransformMatrix(matrix); dc.DrawBitmap(m_bmpOrig, 0, 0); }