Fix preparing a bitmap in propgrid sample

Set explicitly the background colour before clearing the bitmap.
This commit is contained in:
Artur Wieczorek
2019-10-02 00:08:24 +02:00
parent 4489ddc13c
commit 3bf082a8e5

View File

@@ -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);