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:
Vadim Zeitlin
2009-06-04 22:27:02 +00:00
parent a0d3f4d788
commit 66ad30957a

View File

@@ -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());