X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f968da288ee04ec5c0265861bb7a18182c0fb22e..a0a2b5c41c8448c478e05b7819b4c173c22c46a8:/src/mac/carbon/renderer.cpp diff --git a/src/mac/carbon/renderer.cpp b/src/mac/carbon/renderer.cpp index 5018448b4a..fb16dd723a 100644 --- a/src/mac/carbon/renderer.cpp +++ b/src/mac/carbon/renderer.cpp @@ -248,7 +248,8 @@ void wxRendererMac::DrawSplitterSash( wxWindow *win, if ( !dc.IsKindOf( CLASSINFO( wxPaintDC ) ) ) { - wxRect rect( splitterRect.origin.x, splitterRect.origin.y, splitterRect.size.width, splitterRect.size.height ); + wxRect rect( (int) splitterRect.origin.x, (int) splitterRect.origin.y, (int) splitterRect.size.width, + (int) splitterRect.size.height ); win->Refresh( &rect ); } else @@ -273,11 +274,12 @@ wxRendererMac::DrawItemSelectionRect(wxWindow *win, { if ( !(flags & wxCONTROL_SELECTED) ) return; - - wxBrush selBrush(wxColour( wxMacCreateCGColorFromHITheme( flags & wxCONTROL_FOCUSED ? - kThemeBrushAlternatePrimaryHighlightColor - : kThemeBrushSecondaryHighlightColor ) ) , wxSOLID ); - + + wxColour col( wxMacCreateCGColorFromHITheme( (flags & wxCONTROL_FOCUSED) ? + kThemeBrushAlternatePrimaryHighlightColor + : kThemeBrushSecondaryHighlightColor ) ); + wxBrush selBrush( col ); + dc.SetPen( *wxTRANSPARENT_PEN ); dc.SetBrush( selBrush ); dc.DrawRectangle( rect );