From 864cc1aa711a0ae1c788167912afb274bda3a0f9 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 2 Oct 2019 02:39:16 +0200 Subject: [PATCH] Document that wxDC::Clear() uses white background by default This officially documents the historical behaviour of this method in wxMSW and wxGTK2. --- interface/wx/dc.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/interface/wx/dc.h b/interface/wx/dc.h index 40e37cb34a..e7c94b31e9 100644 --- a/interface/wx/dc.h +++ b/interface/wx/dc.h @@ -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();