Fix preparing a bitmap in propgrid sample
Set explicitly the background colour before clearing the bitmap.
This commit is contained in:
@@ -1399,6 +1399,7 @@ void FormMain::PopulateWithExamples ()
|
|||||||
wxBitmap myTestBitmap(60, 15, 32);
|
wxBitmap myTestBitmap(60, 15, 32);
|
||||||
wxMemoryDC mdc;
|
wxMemoryDC mdc;
|
||||||
mdc.SelectObject(myTestBitmap);
|
mdc.SelectObject(myTestBitmap);
|
||||||
|
mdc.SetBackground(*wxWHITE_BRUSH);
|
||||||
mdc.Clear();
|
mdc.Clear();
|
||||||
mdc.SetPen(*wxBLACK);
|
mdc.SetPen(*wxBLACK);
|
||||||
mdc.DrawLine(0, 0, 60, 15);
|
mdc.DrawLine(0, 0, 60, 15);
|
||||||
|
Reference in New Issue
Block a user