From 3bf082a8e5e9c84e1ead8e282b8dab32ce34af5a Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Wed, 2 Oct 2019 00:08:24 +0200 Subject: [PATCH] Fix preparing a bitmap in propgrid sample Set explicitly the background colour before clearing the bitmap. --- samples/propgrid/propgrid.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/samples/propgrid/propgrid.cpp b/samples/propgrid/propgrid.cpp index 3292dc0438..bcc0476e69 100644 --- a/samples/propgrid/propgrid.cpp +++ b/samples/propgrid/propgrid.cpp @@ -1399,6 +1399,7 @@ void FormMain::PopulateWithExamples () wxBitmap myTestBitmap(60, 15, 32); wxMemoryDC mdc; mdc.SelectObject(myTestBitmap); + mdc.SetBackground(*wxWHITE_BRUSH); mdc.Clear(); mdc.SetPen(*wxBLACK); mdc.DrawLine(0, 0, 60, 15);