git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2007-11-27 16:39:59 +00:00
parent a452d0827a
commit af06e62511

View File

@@ -2041,17 +2041,22 @@ void wxWindowMac::OnEraseBackground(wxEraseEvent& event)
{ {
if ( MacGetTopLevelWindow() == NULL ) if ( MacGetTopLevelWindow() == NULL )
return ; return ;
/*
#if TARGET_API_MAC_OSX #if TARGET_API_MAC_OSX
if ( !m_backgroundColour.Ok() || GetBackgroundStyle() == wxBG_STYLE_TRANSPARENT ) if ( !m_backgroundColour.Ok() || GetBackgroundStyle() == wxBG_STYLE_TRANSPARENT )
{ {
event.Skip() ;
} }
else else
#endif #endif
*/
if ( GetBackgroundStyle() == wxBG_STYLE_COLOUR )
{ {
event.GetDC()->Clear() ; event.GetDC()->Clear() ;
} }
else
{
event.Skip() ;
}
} }
void wxWindowMac::OnNcPaint( wxNcPaintEvent& event ) void wxWindowMac::OnNcPaint( wxNcPaintEvent& event )