1. undid wxGTK timer hack, corrected bug in my code

2. clip wxPaintDC to the client area


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8343 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-09-12 16:20:34 +00:00
parent e45a8e8b4e
commit 6e6616f755
9 changed files with 48 additions and 89 deletions

View File

@@ -514,9 +514,9 @@ void wxWindow::ScrollWindow(int dx, int dy, const wxRect *rect)
ptDest =
ptOrigin = GetClientAreaOrigin();
wxSize size;
size.x = sizeTotal.x - abs(dx);
size.y = sizeTotal.y - abs(dy);
if ( size.x < 0 || size.y < 0 )
size.x = sizeTotal.x - abs(dx) - 1;
size.y = sizeTotal.y - abs(dy) - 1;
if ( size.x <= 0 || size.y <= 0 )
{
// just redraw everything as nothing of the displayed image will stay
wxLogTrace(_T("scroll"), _T("refreshing everything"));