mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-01 13:40:23 +02:00
win32 interface: made LCLIntf.Rectangle and TCanvas.Rectangle compatible with Windows.Rectangle winapi function (bug #8342)
git-svn-id: trunk@10665 -
This commit is contained in:
parent
43b884da81
commit
e8a85989c6
@ -2687,7 +2687,7 @@ End;
|
||||
Function TWin32WidgetSet.Rectangle(DC: HDC; X1, Y1, X2, Y2: Integer): Boolean;
|
||||
Begin
|
||||
Assert(False, Format('Trace:> [TWin32WidgetSet.Rectangle] DC:0x%x, X1:%d, Y1:%d, X2:%d, Y2:%d', [DC, X1, Y1, X2, Y2]));
|
||||
Result := Boolean(Windows.Rectangle(DC, X1, Y1, X2+1, Y2+1));
|
||||
Result := Boolean(Windows.Rectangle(DC, X1, Y1, X2, Y2));
|
||||
Assert(False, Format('Trace:< [TWin32WidgetSet.Rectangle] DC:0x%x, X1:%d, Y1:%d, X2:%d, Y2:%d', [DC, X1, Y1, X2, Y2]));
|
||||
End;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user