]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/button.cpp
fixes potential crash under gatekeeper
[wxWidgets.git] / samples / widgets / button.cpp
index 07523bf54325a9c5b558376f5744055627285d99..4376e39ae29b4d5d2d67456a2337ff21bfc94a00 100644 (file)
@@ -619,7 +619,7 @@ wxBitmap ButtonWidgetsPage::CreateBitmap(const wxString& label)
     wxBitmap bmp(180, 70); // shouldn't hardcode but it's simpler like this
     wxMemoryDC dc;
     dc.SelectObject(bmp);
-    dc.SetBackground(wxBrush(*wxCYAN));
+    dc.SetBackground(*wxCYAN_BRUSH);
     dc.Clear();
     dc.SetTextForeground(*wxBLACK);
     dc.DrawLabel(wxStripMenuCodes(m_textLabel->GetValue()) + wxT("\n")