restored DC clipping in wxScrolledWindow

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8352 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-09-13 15:09:30 +00:00
parent 0ddd59282b
commit 4c81b707a5
3 changed files with 2 additions and 3 deletions

1
TODO
View File

@@ -1,6 +1,7 @@
All
* problem with horz scrolling: the focus rect isn't drawn entirely...
* write sample testing all listbox styles/events
MSW

View File

@@ -52,7 +52,7 @@
#include "wx/univ/theme.h"
//#define DEBUG_SCROLL
#define DEBUG_SCROLL
//#define DEBUG_LISTBOX
// ----------------------------------------------------------------------------

View File

@@ -486,12 +486,10 @@ void wxScrollHelper::DoPrepareDC(wxDC& dc)
// for wxUniversal we need to set the clipping region to avoid overwriting
// the scrollbars with the user drawing
#if 0 //def __WXUNIVERSAL__
wxSize size = m_win->GetClientSize();
dc.SetClippingRegion(m_xScrollPosition * m_xScrollPixelsPerLine,
m_yScrollPosition * m_yScrollPixelsPerLine,
size.x, size.y);
#endif // __WXUNIVERSAL__
}
void wxScrollHelper::GetScrollPixelsPerUnit (int *x_unit, int *y_unit) const