]> git.saurik.com Git - wxWidgets.git/commitdiff
making pens behave as on other platforms when scaling
authorStefan Csomor <csomor@advancedconcepts.ch>
Mon, 9 Oct 2006 15:53:36 +0000 (15:53 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Mon, 9 Oct 2006 15:53:36 +0000 (15:53 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41806 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/graphics.cpp

index 7acde4bd2c728c2e33b7373d1aaf039f28df6d48..04d75772e6ceada1e0a8cecefa553b33b271e563 100644 (file)
@@ -427,21 +427,7 @@ void wxGDIPlusContext::Translate( wxDouble dx , wxDouble dy )
 
 void wxGDIPlusContext::Scale( wxDouble xScale , wxDouble yScale )
 {
-    PointF penWidth( m_pen->GetWidth(), 0);
-    Matrix matrix ;
-    if ( !m_penTransparent )
-    {
-            m_context->GetTransform(&matrix);
-            matrix.TransformVectors(&penWidth);
-    }
     m_context->ScaleTransform(xScale,yScale);
-    if ( !m_penTransparent )
-    {
-        m_context->GetTransform(&matrix);
-        matrix.Invert();
-        matrix.TransformVectors(&penWidth) ;
-        m_pen->SetWidth( sqrt( penWidth.X*penWidth.X  + penWidth.Y*penWidth.Y));
-    }
 }
 
 void wxGDIPlusContext::PushState()