X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c7a49742ec6b4effe012dc7204db307e1267bf6a..c77ef57e6e52ed6dbd746ffce489e687b3c3f07d:/samples/font/font.cpp diff --git a/samples/font/font.cpp b/samples/font/font.cpp index 4c78adc24d..0dbf46ac59 100644 --- a/samples/font/font.cpp +++ b/samples/font/font.cpp @@ -1023,7 +1023,7 @@ void MyCanvas::OnPaint( wxPaintEvent &WXUNUSED(event) ) PrepareDC(dc); // set background - dc.SetBackground(wxBrush(wxT("white"), wxSOLID)); + dc.SetBackground(*wxWHITE_BRUSH); dc.Clear(); dc.SetFont(m_font); @@ -1105,7 +1105,7 @@ void MyCanvas::OnPaint( wxPaintEvent &WXUNUSED(event) ) } // draw the lines between them - dc.SetPen(wxPen(wxColour(wxT("blue")), 1, wxSOLID)); + dc.SetPen(*wxBLUE_PEN); int l; // horizontal