Commit 7f7d8585 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

user32: Make the excessive scroll test pass under Windows.

parent 5365ce15
......@@ -2991,13 +2991,14 @@ static void test_scrollvalidate( HWND parent)
CombineRgn( exprgn, exprgn, tmprgn, RGN_OR);
ok( EqualRgn( exprgn, hrgn), "wrong update region\n");
/* clear an update region */
UpdateWindow( hwnd1 );
SetRect( &rc, 0,40, 100,60);
SetRect( &cliprc, 0,0, 100,100);
ScrollWindowEx( hwnd1, 0, -25, &rc, &cliprc, hrgn, &rcu, SW_INVALIDATE);
SetRectRgn( tmprgn, 0,15,98,35);
CombineRgn( exprgn, exprgn, tmprgn, RGN_OR);
SetRectRgn( tmprgn, 0, 40, 98, 60);
CombineRgn( exprgn, exprgn, tmprgn, RGN_OR);
if (winetest_debug > 0) dump_region( hrgn );
SetRectRgn( exprgn, 0, 40, 98, 60 );
ok( EqualRgn( exprgn, hrgn), "wrong update region in excessive scroll\n");
/* now test ScrollWindowEx with a combination of
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment