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:
@@ -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"));
|
||||
|
Reference in New Issue
Block a user