X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a3bf7524f394af039efe196a186f7969cbabcc19..83842a0ba326b22c6b930998a7f817e83ff7f7be:/src/generic/scrlwing.cpp diff --git a/src/generic/scrlwing.cpp b/src/generic/scrlwing.cpp index 8dab9a85f1..deea726fb6 100644 --- a/src/generic/scrlwing.cpp +++ b/src/generic/scrlwing.cpp @@ -383,9 +383,6 @@ void wxScrollHelper::SetScrollbars(int pixelsPerUnitX, else { // otherwise this has been done by AdjustScrollbars, above -#ifdef __WXMAC__ - m_targetWindow->Update() ; -#endif } #endif // !__WXUNIVERSAL__ } @@ -513,10 +510,6 @@ void wxScrollHelper::HandleOnScroll(wxScrollWinEvent& event) { m_targetWindow->ScrollWindow(dx, dy, GetScrollRect()); } - -#ifdef __WXMAC__ - m_targetWindow->Update() ; -#endif } int wxScrollHelper::CalcScrollInc(wxScrollWinEvent& event) @@ -635,10 +628,6 @@ void wxScrollHelper::AdjustScrollbars() return; } -#ifdef __WXMAC__ - m_targetWindow->Update(); -#endif - int w = 0, h = 0; int oldw, oldh; @@ -788,10 +777,6 @@ void wxScrollHelper::AdjustScrollbars() else m_targetWindow->Refresh(TRUE, GetScrollRect()); } - -#ifdef __WXMAC__ - m_targetWindow->Update(); -#endif } void wxScrollHelper::DoPrepareDC(wxDC& dc) @@ -855,10 +840,6 @@ void wxScrollHelper::Scroll( int x_pos, int y_pos ) if (((x_pos == -1) || (x_pos == m_xScrollPosition)) && ((y_pos == -1) || (y_pos == m_yScrollPosition))) return; -#ifdef __WXMAC__ - m_targetWindow->Update(); -#endif - int w, h; GetTargetSize(&w, &h); @@ -904,11 +885,6 @@ void wxScrollHelper::Scroll( int x_pos, int y_pos ) GetScrollRect() ); } } - -#ifdef __WXMAC__ - m_targetWindow->Update(); -#endif - } void wxScrollHelper::EnableScrolling (bool x_scroll, bool y_scroll) @@ -1267,10 +1243,8 @@ void wxGenericScrolledWindow::DoSetVirtualSize(int x, int y) wxPanel::DoSetVirtualSize( x, y ); AdjustScrollbars(); -#if wxUSE_CONSTRAINTS if (GetAutoLayout()) Layout(); -#endif } void wxGenericScrolledWindow::OnPaint(wxPaintEvent& event)