mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-02 08:59:28 +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
|
// Create the device context
|
||||||
wxMemoryDC dc;
|
wxMemoryDC dc;
|
||||||
dc.SetBrush(*wxWHITE_BRUSH);
|
|
||||||
|
|
||||||
// Create the open/expanded bitmap
|
// Create the open/expanded bitmap
|
||||||
mOpen = new wxBitmap(16, 16);
|
mOpen = new wxBitmap(16, 16);
|
||||||
dc.SelectObject(*mOpen);
|
dc.SelectObject(*mOpen);
|
||||||
|
|
||||||
|
dc.SetBrush(*wxWHITE_BRUSH);
|
||||||
dc.SetPen(*wxWHITE_PEN);
|
dc.SetPen(*wxWHITE_PEN);
|
||||||
dc.DrawRectangle(0, 0, 16, 16);
|
dc.DrawRectangle(0, 0, 16, 16);
|
||||||
|
|
||||||
@ -85,6 +85,7 @@ KeyView::KeyView(wxWindow *parent,
|
|||||||
mClosed = new wxBitmap(16, 16);
|
mClosed = new wxBitmap(16, 16);
|
||||||
dc.SelectObject(*mClosed);
|
dc.SelectObject(*mClosed);
|
||||||
|
|
||||||
|
dc.SetBrush(*wxWHITE_BRUSH);
|
||||||
dc.SetPen(*wxWHITE_PEN);
|
dc.SetPen(*wxWHITE_PEN);
|
||||||
dc.DrawRectangle(0, 0, 16, 16);
|
dc.DrawRectangle(0, 0, 16, 16);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user