Added expose event compression.
Made wxUniv scrollbars not accept any focus if they are owned by the window (in contrast to stand alone scrollbars). Further corrections to ScrollWindow() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14389 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -562,8 +562,8 @@ void wxWindowX11::ScrollWindow(int dx, int dy, const wxRect *rect)
|
||||
else
|
||||
{
|
||||
wxRect rect;
|
||||
if (dx < 0) rect.x = cw+dx; else rect.x = s_x;
|
||||
if (dy < 0) rect.y = ch+dy; else rect.y = s_y;
|
||||
if (dx < 0) rect.x = cw+dx + offset.x; else rect.x = s_x;
|
||||
if (dy < 0) rect.y = ch+dy + offset.y; else rect.y = s_y;
|
||||
if (dy != 0) rect.width = cw; else rect.width = abs(dx);
|
||||
if (dx != 0) rect.height = ch; else rect.height = abs(dy);
|
||||
|
||||
|
Reference in New Issue
Block a user