]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed DoDrawRoundedRect to use corner rounding radius arguments
authorDavid Surovell <davids@osafoundation.org>
Tue, 7 Feb 2006 21:54:48 +0000 (21:54 +0000)
committerDavid Surovell <davids@osafoundation.org>
Tue, 7 Feb 2006 21:54:48 +0000 (21:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37378 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/dccg.cpp

index fd73532e1266775442bf0c33280affef21e3b4ae..5512b97eac379bc6b468ec9effefe17487b1671c 100755 (executable)
@@ -1584,7 +1584,7 @@ void wxDC::DoDrawRoundedRectangle(wxCoord x, wxCoord y,
 
     wxMacCGContext* mctx = ((wxMacCGContext*) m_graphicContext) ;
     CGContextRef ctx = mctx->GetNativeContext() ;
-    AddRoundedRectToPath( ctx , CGRectMake( xx , yy , ww , hh ) , 16 ,16 ) ;
+    AddRoundedRectToPath( ctx , CGRectMake( xx , yy , ww , hh ) , radius , radius ) ;
     CGContextDrawPath( ctx , mctx->GetDrawingMode() ) ;
 }