simplifying
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50256 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -248,7 +248,8 @@ void wxRendererMac::DrawSplitterSash( wxWindow *win,
|
|||||||
|
|
||||||
if ( !dc.IsKindOf( CLASSINFO( wxPaintDC ) ) )
|
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 );
|
win->Refresh( &rect );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -274,9 +275,10 @@ wxRendererMac::DrawItemSelectionRect(wxWindow *win,
|
|||||||
if ( !(flags & wxCONTROL_SELECTED) )
|
if ( !(flags & wxCONTROL_SELECTED) )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
wxBrush selBrush(wxColour( wxMacCreateCGColorFromHITheme( flags & wxCONTROL_FOCUSED ?
|
wxColour col( wxMacCreateCGColorFromHITheme( (flags & wxCONTROL_FOCUSED) ?
|
||||||
kThemeBrushAlternatePrimaryHighlightColor
|
kThemeBrushAlternatePrimaryHighlightColor
|
||||||
: kThemeBrushSecondaryHighlightColor ) ) , wxSOLID );
|
: kThemeBrushSecondaryHighlightColor ) );
|
||||||
|
wxBrush selBrush( col );
|
||||||
|
|
||||||
dc.SetPen( *wxTRANSPARENT_PEN );
|
dc.SetPen( *wxTRANSPARENT_PEN );
|
||||||
dc.SetBrush( selBrush );
|
dc.SetBrush( selBrush );
|
||||||
|
Reference in New Issue
Block a user