From 83a12b3507d3b52776b8e718725893cfa82957e4 Mon Sep 17 00:00:00 2001 From: lllucius Date: Sat, 5 Oct 2013 02:38:12 +0000 Subject: [PATCH] Can't set the brush before selecting the bitmap...DOH! --- src/widgets/KeyView.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/widgets/KeyView.cpp b/src/widgets/KeyView.cpp index b1d66207d..12236ea46 100644 --- a/src/widgets/KeyView.cpp +++ b/src/widgets/KeyView.cpp @@ -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);