Merge branch 'dc-clear-white-default'

Fix regression in wxDC::Clear() and make wxGCDC::Clear() consistent with
it by using white if the background brush hadn't been explicitly set.

See https://github.com/wxWidgets/wxWidgets/pull/1582
This commit is contained in:
Vadim Zeitlin
2019-10-05 18:47:44 +02:00
6 changed files with 153 additions and 26 deletions

View File

@@ -261,6 +261,9 @@ public:
Note that SetBackground() method must be used to set the brush used by
Clear(), the brush used for filling the shapes set by SetBrush() is
ignored by it.
If no background brush was set, solid white brush is used to clear the
device context.
*/
void Clear();