mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 06:09:14 +02:00
win32: fix range check error
git-svn-id: trunk@36732 -
This commit is contained in:
parent
d180390193
commit
3fce85182c
@ -129,8 +129,8 @@ begin
|
|||||||
P.Y := 0;
|
P.Y := 0;
|
||||||
Windows.MapWindowPoints(Window, Parent, P, 1);
|
Windows.MapWindowPoints(Window, Parent, P, 1);
|
||||||
Windows.OffsetViewportOrgEx(ControlDC, -P.X, -P.Y, P);
|
Windows.OffsetViewportOrgEx(ControlDC, -P.X, -P.Y, P);
|
||||||
Windows.SendMessage(Parent, WM_ERASEBKGND, ControlDC, 0);
|
Windows.SendMessage(Parent, WM_ERASEBKGND, WParam(ControlDC), 0);
|
||||||
Windows.SendMessage(Parent, WM_PRINTCLIENT, ControlDC, PRF_CLIENT);
|
Windows.SendMessage(Parent, WM_PRINTCLIENT, WParam(ControlDC), PRF_CLIENT);
|
||||||
Windows.SetViewportExtEx(ControlDC, P.X, P.Y, nil);
|
Windows.SetViewportExtEx(ControlDC, P.X, P.Y, nil);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user