mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-13 06:31:36 +02:00
* use inherited ResetCursor for fvision lib
This commit is contained in:
parent
9cc0b51e98
commit
a866d5ef7e
@ -3890,30 +3890,21 @@ begin
|
|||||||
DrawCursorCalled:=true;
|
DrawCursorCalled:=true;
|
||||||
exit;
|
exit;
|
||||||
end
|
end
|
||||||
|
{$ifdef FVISION}
|
||||||
|
else inherited ResetCursor;
|
||||||
|
{$else not FVISION}
|
||||||
else if (state and sfV_CV_F) = sfV_CV_F then
|
else if (state and sfV_CV_F) = sfV_CV_F then
|
||||||
begin
|
begin
|
||||||
p:=@Self;
|
p:=@Self;
|
||||||
cur:=cursor;
|
cur:=cursor;
|
||||||
{$ifdef FVISION}
|
|
||||||
{ origin is relative to screen for fvision }
|
|
||||||
cur.x:=cur.x+p^.origin.x;
|
|
||||||
cur.y:=cur.y+p^.origin.y;
|
|
||||||
{$endif FVISION}
|
|
||||||
while true do
|
while true do
|
||||||
begin
|
begin
|
||||||
{$ifdef FVISION}
|
|
||||||
if (cur.x<p^.origin.x) or (cur.x>=p^.origin.x+p^.size.x) or
|
|
||||||
(cur.y<p^.origin.y) or (cur.y>=p^.origin.y+p^.size.y) then
|
|
||||||
{$else not FVISION}
|
|
||||||
if (cur.x<0) or (cur.x>=p^.size.x) or
|
if (cur.x<0) or (cur.x>=p^.size.x) or
|
||||||
(cur.y<0) or (cur.y>=p^.size.y) then
|
(cur.y<0) or (cur.y>=p^.size.y) then
|
||||||
{$endif FVISION}
|
|
||||||
break;
|
break;
|
||||||
p2:=p;
|
p2:=p;
|
||||||
{$ifndef FVISION}
|
|
||||||
cur.x:=cur.x+p^.origin.x;
|
cur.x:=cur.x+p^.origin.x;
|
||||||
cur.y:=cur.y+p^.origin.y;
|
cur.y:=cur.y+p^.origin.y;
|
||||||
{$endif not FVISION}
|
|
||||||
G:=p^.owner;
|
G:=p^.owner;
|
||||||
if G=Nil then { top view }
|
if G=Nil then { top view }
|
||||||
begin
|
begin
|
||||||
@ -3932,6 +3923,7 @@ begin
|
|||||||
end; { while }
|
end; { while }
|
||||||
end; { if }
|
end; { if }
|
||||||
Video.SetCursorType(crHidden);
|
Video.SetCursorType(crHidden);
|
||||||
|
{$endif not FVISION}
|
||||||
end;
|
end;
|
||||||
{$endif USE_FREEVISION}
|
{$endif USE_FREEVISION}
|
||||||
|
|
||||||
@ -7109,7 +7101,10 @@ end;
|
|||||||
END.
|
END.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.20 2002-05-31 12:33:49 pierre
|
Revision 1.21 2002-06-06 07:04:00 pierre
|
||||||
|
* use inherited ResetCursor for fvision lib
|
||||||
|
|
||||||
|
Revision 1.20 2002/05/31 12:33:49 pierre
|
||||||
* fix fvision dialog problem due to DataSize differences
|
* fix fvision dialog problem due to DataSize differences
|
||||||
|
|
||||||
Revision 1.19 2002/05/30 22:01:12 pierre
|
Revision 1.19 2002/05/30 22:01:12 pierre
|
||||||
|
Loading…
Reference in New Issue
Block a user