win32: fix range check error

git-svn-id: trunk@36732 -
This commit is contained in:
paul 2012-04-12 01:13:29 +00:00
parent d180390193
commit 3fce85182c

View File

@ -129,8 +129,8 @@ begin
P.Y := 0;
Windows.MapWindowPoints(Window, Parent, P, 1);
Windows.OffsetViewportOrgEx(ControlDC, -P.X, -P.Y, P);
Windows.SendMessage(Parent, WM_ERASEBKGND, ControlDC, 0);
Windows.SendMessage(Parent, WM_PRINTCLIENT, ControlDC, PRF_CLIENT);
Windows.SendMessage(Parent, WM_ERASEBKGND, WParam(ControlDC), 0);
Windows.SendMessage(Parent, WM_PRINTCLIENT, WParam(ControlDC), PRF_CLIENT);
Windows.SetViewportExtEx(ControlDC, P.X, P.Y, nil);
end;
end;