|
@@ -402,9 +402,21 @@ CONST
|
|
|
{<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>}
|
|
|
|
|
|
{$IFDEF FPC_DOTTEDUNITS}
|
|
|
-uses System.Console.Mouse{,System.Resources.Resource};
|
|
|
+uses System.Console.Mouse
|
|
|
+{$ifdef FV_UNICODE}
|
|
|
+ {$ifdef unix},FreeVision.Ufvclip{$endif}
|
|
|
+{$else FV_UNICODE}
|
|
|
+ {$ifdef unix},FreeVision.Fvclip{$endif}
|
|
|
+{$endif FV_UNICODE}
|
|
|
+ ;
|
|
|
{$ELSE FPC_DOTTEDUNITS}
|
|
|
-uses Mouse{,Resource};
|
|
|
+uses Mouse
|
|
|
+{$ifdef FV_UNICODE}
|
|
|
+ {$ifdef unix},ufvclip{$endif}
|
|
|
+{$else FV_UNICODE}
|
|
|
+ {$ifdef unix},fvclip{$endif}
|
|
|
+{$endif FV_UNICODE}
|
|
|
+ ;
|
|
|
{$ENDIF FPC_DOTTEDUNITS}
|
|
|
|
|
|
resourcestring sVideoFailed='Video initialization failed.';
|
|
@@ -1117,6 +1129,7 @@ BEGIN
|
|
|
{$endif FV_UNICODE}
|
|
|
InitHistory; { Start history up }
|
|
|
Inherited Init; { Call ancestor }
|
|
|
+ {$ifdef unix}InitClip(@Self);{$endif}
|
|
|
InitMsgBox;
|
|
|
{ init mouse and cursor }
|
|
|
{$IFDEF FPC_DOTTEDUNITS}System.Console.{$ENDIF}Video.SetCursorType(crHidden);
|
|
@@ -1140,6 +1153,7 @@ BEGIN
|
|
|
{$IFDEF FPC_DOTTEDUNITS}FreeVision.{$ENDIF}drivers.donevideo;
|
|
|
{$endif FV_UNICODE}
|
|
|
{ DoneMemory;} { Close memory }
|
|
|
+ {$ifdef unix}DoneClip;{$endif}
|
|
|
donekeyboard;
|
|
|
{ DoneResource;}
|
|
|
END;
|
|
@@ -1174,6 +1188,7 @@ var s:string;
|
|
|
{$endif}
|
|
|
|
|
|
BEGIN { Compatability only }
|
|
|
+ {$ifdef unix}DoneClip;{$endif}
|
|
|
DoneSysError;
|
|
|
DoneEvents;
|
|
|
{$ifdef FV_UNICODE}
|
|
@@ -1207,6 +1222,7 @@ BEGIN { Compatability only }
|
|
|
InitScreen;
|
|
|
InitEvents;
|
|
|
InitSysError;
|
|
|
+ {$ifdef unix}InitClip(@Self);{$endif}
|
|
|
Redraw;
|
|
|
END;
|
|
|
|