]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix for OS X Cocoa build.
authorKevin Ollivier <kevino@theolliviers.com>
Wed, 31 Dec 2008 17:17:20 +0000 (17:17 +0000)
committerKevin Ollivier <kevino@theolliviers.com>
Wed, 31 Dec 2008 17:17:20 +0000 (17:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57694 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/carbon/renderer.cpp

index 1d8bbd4df761a9dbec827fa0845299c91ff2bd2c..3f8c1a95e67962269b75d82e02c029742718bca6 100644 (file)
@@ -538,17 +538,7 @@ void wxRendererMac::DrawTextCtrl(wxWindow* win, wxDC& dc,
     HIRect hiRect = CGRectMake( x, y, w, h );
     if ( !wxInPaintEvent(win, dc) )
     {
-        Rect r =
-        {
-            (short) hiRect.origin.y, (short) hiRect.origin.x,
-            (short) (hiRect.origin.y + hiRect.size.height),
-            (short) (hiRect.origin.x + hiRect.size.width)
-        };
-
-        RgnHandle updateRgn = NewRgn();
-        RectRgn( updateRgn, &r );
-        HIViewSetNeedsDisplayInRegion( (HIViewRef) win->GetHandle(), updateRgn, true );
-        DisposeRgn( updateRgn );
+        win->Refresh( &rect );
     }
     else
     {