Fix preparing a bitmap in propgrid sample
Set explicitly the background colour before clearing the bitmap.
This commit is contained in:
parent
4489ddc13c
commit
3bf082a8e5
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue