removed deprecated wxDC.[Begin,End]Drawing calls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1216,7 +1216,6 @@ void wxTreeListHeaderWindow::OnPaint( wxPaintEvent &WXUNUSED(event) )
|
|||||||
dc.SetBackground(wxBrush(GetBackgroundColour()));
|
dc.SetBackground(wxBrush(GetBackgroundColour()));
|
||||||
dc.Clear();
|
dc.Clear();
|
||||||
|
|
||||||
dc.BeginDrawing();
|
|
||||||
dc.SetFont( GetFont() );
|
dc.SetFont( GetFont() );
|
||||||
dc.SetBackgroundMode(wxTRANSPARENT);
|
dc.SetBackgroundMode(wxTRANSPARENT);
|
||||||
|
|
||||||
@@ -1307,7 +1306,6 @@ void wxTreeListHeaderWindow::OnPaint( wxPaintEvent &WXUNUSED(event) )
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Finish up by drawing the buffer to the real dc
|
// Finish up by drawing the buffer to the real dc
|
||||||
dc.EndDrawing();
|
|
||||||
dc.SelectObject(wxNullBitmap);
|
dc.SelectObject(wxNullBitmap);
|
||||||
real_dc.DrawBitmap(buffer, 0, 0, false);
|
real_dc.DrawBitmap(buffer, 0, 0, false);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user