1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-29 06:59:27 +02:00

Can't set the brush before selecting the bitmap...DOH!

This commit is contained in:
lllucius 2013-10-05 02:38:12 +00:00
parent 1898cd6349
commit 83a12b3507

View File

@ -67,12 +67,12 @@ KeyView::KeyView(wxWindow *parent,
// Create the device context
wxMemoryDC dc;
dc.SetBrush(*wxWHITE_BRUSH);
// Create the open/expanded bitmap
mOpen = new wxBitmap(16, 16);
dc.SelectObject(*mOpen);
dc.SetBrush(*wxWHITE_BRUSH);
dc.SetPen(*wxWHITE_PEN);
dc.DrawRectangle(0, 0, 16, 16);
@ -85,6 +85,7 @@ KeyView::KeyView(wxWindow *parent,
mClosed = new wxBitmap(16, 16);
dc.SelectObject(*mClosed);
dc.SetBrush(*wxWHITE_BRUSH);
dc.SetPen(*wxWHITE_PEN);
dc.DrawRectangle(0, 0, 16, 16);