X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/48611b8fc2a57321f0a5cbb3558436a680ab5129..7f6cf37004ce42bba674e577b8a39b853aa08254:/tests/graphics/affinematrix.cpp diff --git a/tests/graphics/affinematrix.cpp b/tests/graphics/affinematrix.cpp index c6a0696241..90f56cc1a9 100644 --- a/tests/graphics/affinematrix.cpp +++ b/tests/graphics/affinematrix.cpp @@ -60,7 +60,7 @@ private: // register in the unnamed registry so that these tests are run by default CPPUNIT_TEST_SUITE_REGISTRATION( AffineTransformTestCase ); -// also include in it's own registry so that these tests can be run alone +// also include in its own registry so that these tests can be run alone CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( AffineTransformTestCase, "AffineTransformTestCase" ); void AffineTransformTestCase::setUp() @@ -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); }