Fix wrong calls to wxWindow::Refresh() in OS X wxRenderer
Refresh(&rect) was used instead of Refresh(true, &rect) mistakenly, thanks to clang for warning about always-true-conversion-to-bool here. Fix this by using less error-prone and more clear RefreshRect().
This commit is contained in:
@@ -182,7 +182,7 @@ int wxRendererMac::DrawHeaderButton( wxWindow *win,
|
|||||||
HIRect headerRect = CGRectMake( x, y, w, h );
|
HIRect headerRect = CGRectMake( x, y, w, h );
|
||||||
if ( !wxHasCGContext(win, dc) )
|
if ( !wxHasCGContext(win, dc) )
|
||||||
{
|
{
|
||||||
win->Refresh( &rect );
|
win->RefreshRect(rect);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -271,7 +271,7 @@ void wxRendererMac::DrawTreeItemButton( wxWindow *win,
|
|||||||
HIRect headerRect = CGRectMake( x, y, w, h );
|
HIRect headerRect = CGRectMake( x, y, w, h );
|
||||||
if ( !wxHasCGContext(win, dc) )
|
if ( !wxHasCGContext(win, dc) )
|
||||||
{
|
{
|
||||||
win->Refresh( &rect );
|
win->RefreshRect(rect);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -423,7 +423,7 @@ wxRendererMac::DrawMacThemeButton(wxWindow *win,
|
|||||||
HIRect headerRect = CGRectMake( x, y, w, h );
|
HIRect headerRect = CGRectMake( x, y, w, h );
|
||||||
if ( !wxHasCGContext(win, dc) )
|
if ( !wxHasCGContext(win, dc) )
|
||||||
{
|
{
|
||||||
win->Refresh( &rect );
|
win->RefreshRect(rect);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -668,7 +668,7 @@ void wxRendererMac::DrawTextCtrl(wxWindow* win, wxDC& dc,
|
|||||||
HIRect hiRect = CGRectMake( x, y, w, h );
|
HIRect hiRect = CGRectMake( x, y, w, h );
|
||||||
if ( !wxHasCGContext(win, dc) )
|
if ( !wxHasCGContext(win, dc) )
|
||||||
{
|
{
|
||||||
win->Refresh( &rect );
|
win->RefreshRect(rect);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user