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:
parent
1898cd6349
commit
83a12b3507
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user