only erase background if we do have a non-default background set

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61127 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2009-06-19 00:01:40 +00:00
parent 7ac0e38e96
commit ced2fad6f2

View File

@ -1778,7 +1778,7 @@ bool wxWindowMac::MacDoRedraw( long time )
break;
}
if ( MacGetTopLevelWindow() )
if ( UseBgCol() && MacGetTopLevelWindow() )
{
dc.SetBackground(GetBackgroundColour());
dc.Clear();