X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c3f641cb5e2a89f9e191ee5b60eb6dafb23096d3..cd15bcaf50ead53ccf9d50965312f0dc754affb4:/samples/image/canvas.cpp diff --git a/samples/image/canvas.cpp b/samples/image/canvas.cpp index cdba69aa43..31ea54f76e 100644 --- a/samples/image/canvas.cpp +++ b/samples/image/canvas.cpp @@ -63,7 +63,7 @@ MyCanvas::MyCanvas( wxWindow *parent, wxWindowID id, wxMemoryDC dc; dc.SelectObject( bitmap ); - dc.SetBrush( wxBrush( wxT("orange"), wxSOLID ) ); + dc.SetBrush( wxBrush( wxS("orange") ) ); dc.SetPen( *wxBLACK_PEN ); dc.DrawRectangle( 0, 0, 100, 100 ); dc.SetBrush( *wxWHITE_BRUSH ); @@ -407,7 +407,7 @@ void MyCanvas::OnPaint( wxPaintEvent &WXUNUSED(event) ) dc.DrawBitmap( my_square, 30, 30 ); dc.DrawText( wxT("Drawn directly"), 150, 10 ); - dc.SetBrush( wxBrush( wxT("orange"), wxSOLID ) ); + dc.SetBrush( wxBrush( wxS("orange") ) ); dc.SetPen( *wxBLACK_PEN ); dc.DrawRectangle( 150, 30, 100, 100 ); dc.SetBrush( *wxWHITE_BRUSH );