]> git.saurik.com Git - wxWidgets.git/commitdiff
10.4 compatibility
authorStefan Csomor <csomor@advancedconcepts.ch>
Mon, 6 Jun 2011 21:13:33 +0000 (21:13 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Mon, 6 Jun 2011 21:13:33 +0000 (21:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67871 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/window.mm

index aba5751431749cbdcc2e0381253705d29fbf8426..1bea54aed216a8071872211f83b3d9aa86e93dbd 100644 (file)
@@ -812,7 +812,8 @@ void wxOSX_drawRect(NSView* self, SEL _cmd, NSRect rect)
                 CGContextSaveGState( context );
 
                 CGContextSetFillColorWithColor( context, win->GetBackgroundColour().GetCGColor());
-                CGContextFillRect( context, NSRectToCGRect(rect) );
+                CGRect r = CGRectMake(rect.origin.x, rect.origin.y, rect.size.width, rect.size.height);
+                CGContextFillRect( context, r );
 
                 CGContextRestoreGState( context );
             }