From b7c2918bf13d18f1cf05cd6a7d13f56809a5a845 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 28 Jul 2021 01:25:51 +0200 Subject: [PATCH] Document that Refresh() always erases background in non-MSW ports The distinction between redrawing the background and the rest of the window only exists in MSW and we can't refresh the window without refreshing its background in the other ports, but we can at least document this. Closes #19234. --- interface/wx/window.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/interface/wx/window.h b/interface/wx/window.h index 07b80d664b..2918be982a 100644 --- a/interface/wx/window.h +++ b/interface/wx/window.h @@ -2202,7 +2202,8 @@ public: should use Update() instead. @param eraseBackground - If @true, the background will be erased. + If @true, the background will be erased too. Note that in non-MSW + ports background is always erased. @param rect If non-@NULL, only the given rectangle will be treated as damaged.