mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 02:59:17 +02:00
IpHtmlPanel can show simple HTML pages, but there are mem bugs
git-svn-id: trunk@2630 -
This commit is contained in:
parent
c8fbc837db
commit
b65c00f592
@ -1295,11 +1295,11 @@ function IntersectRect(var DestRect: TRect;
|
|||||||
begin
|
begin
|
||||||
Result := False;
|
Result := False;
|
||||||
|
|
||||||
// test if rectangles intersects
|
// test if rectangles intersects
|
||||||
Result:=(SrcRect2.Left >= SrcRect1.Right)
|
Result:=(SrcRect2.Left < SrcRect1.Right)
|
||||||
or (SrcRect2.Right <= SrcRect1.Left)
|
and (SrcRect2.Right > SrcRect1.Left)
|
||||||
or (SrcRect2.Top >= SrcRect1.Bottom)
|
and (SrcRect2.Top < SrcRect1.Bottom)
|
||||||
or (SrcRect2.Bottom <= SrcRect1.Top);
|
and (SrcRect2.Bottom > SrcRect1.Top);
|
||||||
|
|
||||||
if Result then begin
|
if Result then begin
|
||||||
DestRect.Left:=Max(SrcRect1.Left,SrcRect2.Left);
|
DestRect.Left:=Max(SrcRect1.Left,SrcRect2.Left);
|
||||||
@ -1580,6 +1580,9 @@ end;
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.80 2003/03/29 23:52:25 mattias
|
||||||
|
IpHtmlPanel can show simple HTML pages, but there are mem bugs
|
||||||
|
|
||||||
Revision 1.79 2003/03/29 17:20:05 mattias
|
Revision 1.79 2003/03/29 17:20:05 mattias
|
||||||
added TMemoScrollBar
|
added TMemoScrollBar
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user