use wxAutoBufferedPaintDC to avoid needlessly double buffering under platforms which already do this natively (closes #10869)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60896 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -849,6 +849,7 @@ wxAuiToolBar::wxAuiToolBar(wxWindow* parent,
|
||||
SetExtraStyle(wxWS_EX_PROCESS_IDLE);
|
||||
if (style & wxAUI_TB_HORZ_LAYOUT)
|
||||
SetToolTextOrientation(wxAUI_TBTOOL_TEXT_RIGHT);
|
||||
SetBackgroundStyle(wxBG_STYLE_CUSTOM);
|
||||
}
|
||||
|
||||
|
||||
@@ -2187,7 +2188,7 @@ void wxAuiToolBar::OnIdle(wxIdleEvent& evt)
|
||||
|
||||
void wxAuiToolBar::OnPaint(wxPaintEvent& WXUNUSED(evt))
|
||||
{
|
||||
wxBufferedPaintDC dc(this);
|
||||
wxAutoBufferedPaintDC dc(this);
|
||||
wxRect cli_rect(wxPoint(0,0), GetClientSize());
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user