From: Francesco Montorsi Date: Wed, 9 Jun 2010 17:58:13 +0000 (+0000) Subject: fix bug in wxGDIPlusMatrixData::Rotate: it must take radians for coherency with docs... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6f32f3cea28e7f0dfe1618bced4d9648af26d6d7 fix bug in wxGDIPlusMatrixData::Rotate: it must take radians for coherency with docs and other ports but GDI+ wants degrees. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64538 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/graphics.cpp b/src/msw/graphics.cpp index 288997c7c1..d0c3c643ba 100644 --- a/src/msw/graphics.cpp +++ b/src/msw/graphics.cpp @@ -1044,7 +1044,7 @@ void wxGDIPlusMatrixData::Scale( wxDouble xScale , wxDouble yScale ) // add the rotation to this matrix (radians) void wxGDIPlusMatrixData::Rotate( wxDouble angle ) { - m_matrix->Rotate( angle ); + m_matrix->Rotate( RadToDeg(angle) ); } //