if we don't have a valid background color, paint a white grow box
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2459,8 +2459,15 @@ void wxWindowMac::MacPaintGrowBox()
|
|||||||
CGPoint cgpoint = CGPointMake( rect.right - size , rect.bottom - size ) ;
|
CGPoint cgpoint = CGPointMake( rect.right - size , rect.bottom - size ) ;
|
||||||
CGContextSaveGState( cgContext );
|
CGContextSaveGState( cgContext );
|
||||||
|
|
||||||
wxMacCoreGraphicsColour bkgnd( m_macBackgroundBrush ) ;
|
if ( m_macBackgroundBrush.Ok() && m_macBackgroundBrush.GetStyle() != wxTRANSPARENT )
|
||||||
bkgnd.Apply( cgContext );
|
{
|
||||||
|
wxMacCoreGraphicsColour bkgnd( m_macBackgroundBrush ) ;
|
||||||
|
bkgnd.Apply( cgContext );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
CGContextSetRGBFillColor( cgContext, 1.0, 1.0 , 1.0 , 1.0 );
|
||||||
|
}
|
||||||
CGContextFillRect( cgContext, cgrect );
|
CGContextFillRect( cgContext, cgrect );
|
||||||
CGContextRestoreGState( cgContext );
|
CGContextRestoreGState( cgContext );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user