From: Vadim Zeitlin <vadim@wxwidgets.org> Date: Wed, 11 Jul 2001 23:21:10 +0000 (+0000) Subject: don't refresh the scrollbars unnecessarily X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7d29741468f11b820d8e5a91a3755f4bb282bcc2 don't refresh the scrollbars unnecessarily git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10979 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/univ/winuniv.cpp b/src/univ/winuniv.cpp index 6039e08f44..b7b018abb0 100644 --- a/src/univ/winuniv.cpp +++ b/src/univ/winuniv.cpp @@ -729,8 +729,13 @@ void wxWindow::SetScrollPos(int orient, int pos, bool refresh) wxCHECK_RET( scrollbar, _T("no scrollbar to set position for") ); scrollbar->SetThumbPosition(pos); + + // VZ: I think we can safely ignore this as we always refresh it + // automatically whenever the value chanegs +#if 0 if ( refresh ) Refresh(); +#endif } int wxWindow::GetScrollPos(int orient) const