Fix for OS X Cocoa build.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57694 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -538,17 +538,7 @@ void wxRendererMac::DrawTextCtrl(wxWindow* win, wxDC& dc,
|
|||||||
HIRect hiRect = CGRectMake( x, y, w, h );
|
HIRect hiRect = CGRectMake( x, y, w, h );
|
||||||
if ( !wxInPaintEvent(win, dc) )
|
if ( !wxInPaintEvent(win, dc) )
|
||||||
{
|
{
|
||||||
Rect r =
|
win->Refresh( &rect );
|
||||||
{
|
|
||||||
(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 );
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user