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:
Vadim Zeitlin
2016-03-20 16:59:09 +01:00
parent 608cee6965
commit 2392423f39

View File

@@ -182,7 +182,7 @@ int wxRendererMac::DrawHeaderButton( wxWindow *win,
HIRect headerRect = CGRectMake( x, y, w, h );
if ( !wxHasCGContext(win, dc) )
{
win->Refresh( &rect );
win->RefreshRect(rect);
}
else
{
@@ -271,7 +271,7 @@ void wxRendererMac::DrawTreeItemButton( wxWindow *win,
HIRect headerRect = CGRectMake( x, y, w, h );
if ( !wxHasCGContext(win, dc) )
{
win->Refresh( &rect );
win->RefreshRect(rect);
}
else
{
@@ -423,7 +423,7 @@ wxRendererMac::DrawMacThemeButton(wxWindow *win,
HIRect headerRect = CGRectMake( x, y, w, h );
if ( !wxHasCGContext(win, dc) )
{
win->Refresh( &rect );
win->RefreshRect(rect);
}
else
{
@@ -668,7 +668,7 @@ void wxRendererMac::DrawTextCtrl(wxWindow* win, wxDC& dc,
HIRect hiRect = CGRectMake( x, y, w, h );
if ( !wxHasCGContext(win, dc) )
{
win->Refresh( &rect );
win->RefreshRect(rect);
}
else
{