]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/window_osx.cpp
only erase background if we do have a non-default background set
[wxWidgets.git] / src / osx / window_osx.cpp
index cb59ce7889d7fd00e189fe231dc6ab3e63effe14..5ba3fcaf50a1e7a8bb056f1e41126709a6859c07 100644 (file)
@@ -1778,7 +1778,7 @@ bool wxWindowMac::MacDoRedraw( long time )
                         break;
                 }
 
-                if ( MacGetTopLevelWindow() )
+                if ( UseBgCol() && MacGetTopLevelWindow() )
                 {
                     dc.SetBackground(GetBackgroundColour());
                     dc.Clear();