@@ -654,7 +654,7 @@ void wxPlotCtrl::DrawActiveBitmap( wxDC* dc )
654654 int top = m_yAxisScrollbar->GetRect ().GetBottom ();
655655 wxRect rect (left, top, size.x - left, size.y - top);
656656 // clear background
657- dc->SetBrush (wxBrush (GetBackgroundColour (), wxSOLID ));
657+ dc->SetBrush (wxBrush (GetBackgroundColour (), wxBRUSHSTYLE_SOLID ));
658658 dc->SetPen (*wxTRANSPARENT_PEN);
659659 dc->DrawRectangle (rect);
660660 // center the bitmap
@@ -2525,8 +2525,8 @@ void wxPlotCtrl::DrawAreaWindow( wxDC *dc, const wxRect &rect )
25252525
25262526 dc->SetClippingRegion (refreshRect);
25272527
2528- dc->SetBrush ( wxBrush (GetBackgroundColour (), wxSOLID ) );
2529- dc->SetPen ( wxPen (GetBorderColour (), m_area_border_width, wxSOLID ) );
2528+ dc->SetBrush ( wxBrush (GetBackgroundColour (), wxBRUSHSTYLE_SOLID ) );
2529+ dc->SetPen ( wxPen (GetBorderColour (), m_area_border_width, wxPENSTYLE_SOLID ) );
25302530 dc->DrawRectangle (clientRect);
25312531
25322532 DrawTickMarks ( dc, refreshRect );
@@ -2563,7 +2563,7 @@ void wxPlotCtrl::DrawAreaWindow( wxDC *dc, const wxRect &rect )
25632563
25642564 // refresh border
25652565 dc->SetBrush ( *wxTRANSPARENT_BRUSH );
2566- dc->SetPen ( wxPen (GetBorderColour (), m_area_border_width, wxSOLID ) );
2566+ dc->SetPen ( wxPen (GetBorderColour (), m_area_border_width, wxPENSTYLE_SOLID ) );
25672567 dc->DrawRectangle (clientRect);
25682568
25692569 dc->SetPen ( wxNullPen );
@@ -2584,7 +2584,7 @@ void wxPlotCtrl::DrawMouseMarker( wxDC *dc, int type, const wxRect &rect )
25842584#endif
25852585 dc->SetLogicalFunction ( wxINVERT );
25862586 dc->SetBrush ( *wxTRANSPARENT_BRUSH );
2587- dc->SetPen (*wxThePenList->FindOrCreatePen (*wxBLACK, 1 , wxDOT ));
2587+ dc->SetPen (*wxThePenList->FindOrCreatePen (*wxBLACK, 1 , wxPENSTYLE_DOT ));
25882588
25892589 switch (type)
25902590 {
@@ -2765,7 +2765,7 @@ void wxPlotCtrl::DrawCurveCursor( wxDC *dc )
27652765void wxPlotCtrl::DrawTickMarks ( wxDC *dc, const wxRect& rect )
27662766{
27672767 wxRect clientRect (GetPlotAreaRect ());
2768- dc->SetPen ( wxPen (GetGridColour (), 1 , wxSOLID ) );
2768+ dc->SetPen ( wxPen (GetGridColour (), 1 , wxPENSTYLE_SOLID ) );
27692769
27702770 int xtick_length = GetDrawGrid () ? clientRect.height : 10 ;
27712771 int ytick_length = GetDrawGrid () ? clientRect.width : 10 ;
0 commit comments