From dfc6cdc06355fa46ffc3725079a653324c45b974 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 14 Sep 2019 23:08:20 +0200 Subject: [PATCH] Emphasize that wxDC::Clear() used brush set by SetBackground() Ensure that people don't get the impression that using SetBrush() is supposed to affect Clears(). See #18463. --- interface/wx/dc.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/interface/wx/dc.h b/interface/wx/dc.h index f577403ed0..40e37cb34a 100644 --- a/interface/wx/dc.h +++ b/interface/wx/dc.h @@ -257,6 +257,10 @@ public: /** Clears the device context using the current background brush. + + 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. */ void Clear();