|
@@ -822,7 +822,7 @@ CONST
|
|
type
|
|
type
|
|
TstatVar2 = record
|
|
TstatVar2 = record
|
|
target : PView;
|
|
target : PView;
|
|
- offset,y : integer;
|
|
|
|
|
|
+ offset,y : SmallInt;
|
|
end;
|
|
end;
|
|
|
|
|
|
var
|
|
var
|
|
@@ -889,7 +889,7 @@ end;
|
|
|
|
|
|
TYPE
|
|
TYPE
|
|
ViewPortType = RECORD
|
|
ViewPortType = RECORD
|
|
- X1, Y1, X2, Y2: Integer; { Corners of viewport }
|
|
|
|
|
|
+ X1, Y1, X2, Y2: SmallInt; { Corners of viewport }
|
|
Clip : Boolean; { Clip status }
|
|
Clip : Boolean; { Clip status }
|
|
END;
|
|
END;
|
|
|
|
|
|
@@ -907,7 +907,7 @@ END;
|
|
{---------------------------------------------------------------------------}
|
|
{---------------------------------------------------------------------------}
|
|
{ SetViewPort -> Platforms DOS/DPMI/WIN/NT/OS2 - Updated 05Dec2000 LdB }
|
|
{ SetViewPort -> Platforms DOS/DPMI/WIN/NT/OS2 - Updated 05Dec2000 LdB }
|
|
{---------------------------------------------------------------------------}
|
|
{---------------------------------------------------------------------------}
|
|
-PROCEDURE SetViewPort (X1, Y1, X2, Y2: Integer; Clip: Boolean);
|
|
|
|
|
|
+PROCEDURE SetViewPort (X1, Y1, X2, Y2: SmallInt; Clip: Boolean);
|
|
BEGIN
|
|
BEGIN
|
|
If (X1 < 0) Then X1 := 0; { X1 negative fix }
|
|
If (X1 < 0) Then X1 := 0; { X1 negative fix }
|
|
If (X1 >ScreenWidth) Then
|
|
If (X1 >ScreenWidth) Then
|
|
@@ -962,7 +962,7 @@ END;
|
|
{ supported but it should work as per original TV code. }
|
|
{ supported but it should work as per original TV code. }
|
|
{---------------------------------------------------------------------------}
|
|
{---------------------------------------------------------------------------}
|
|
CONSTRUCTOR TView.Load (Var S: TStream);
|
|
CONSTRUCTOR TView.Load (Var S: TStream);
|
|
-VAR i: Integer;
|
|
|
|
|
|
+VAR i: SmallInt;
|
|
BEGIN
|
|
BEGIN
|
|
Inherited Init; { Call ancestor }
|
|
Inherited Init; { Call ancestor }
|
|
S.Read(i, SizeOf(i)); Origin.X:=i; { Read origin x value }
|
|
S.Read(i, SizeOf(i)); Origin.X:=i; { Read origin x value }
|
|
@@ -1682,7 +1682,7 @@ END;
|
|
{---------------------------------------------------------------------------}
|
|
{---------------------------------------------------------------------------}
|
|
PROCEDURE TView.Store (Var S: TStream);
|
|
PROCEDURE TView.Store (Var S: TStream);
|
|
VAR SaveState: Word;
|
|
VAR SaveState: Word;
|
|
- i: integer;
|
|
|
|
|
|
+ i: SmallInt;
|
|
BEGIN
|
|
BEGIN
|
|
SaveState := State; { Hold current state }
|
|
SaveState := State; { Hold current state }
|
|
State := State AND NOT (sfActive OR sfSelected OR
|
|
State := State AND NOT (sfActive OR sfSelected OR
|
|
@@ -1867,7 +1867,7 @@ END;
|
|
{ GetPeerViewPtr -> Platforms DOS/DPMI/WIN/NT/OS2 - Updated 12Sep97 LdB }
|
|
{ GetPeerViewPtr -> Platforms DOS/DPMI/WIN/NT/OS2 - Updated 12Sep97 LdB }
|
|
{---------------------------------------------------------------------------}
|
|
{---------------------------------------------------------------------------}
|
|
PROCEDURE TView.GetPeerViewPtr (Var S: TStream; Var P);
|
|
PROCEDURE TView.GetPeerViewPtr (Var S: TStream; Var P);
|
|
-VAR Index: Integer;
|
|
|
|
|
|
+VAR Index: SmallInt;
|
|
BEGIN
|
|
BEGIN
|
|
Index := 0; { Zero index value }
|
|
Index := 0; { Zero index value }
|
|
S.Read(Index, SizeOf(Index)); { Read view index }
|
|
S.Read(Index, SizeOf(Index)); { Read view index }
|
|
@@ -1882,7 +1882,7 @@ END;
|
|
{ PutPeerViewPtr -> Platforms DOS/DPMI/WIN/NT/OS2 - Updated 12Sep97 LdB }
|
|
{ PutPeerViewPtr -> Platforms DOS/DPMI/WIN/NT/OS2 - Updated 12Sep97 LdB }
|
|
{---------------------------------------------------------------------------}
|
|
{---------------------------------------------------------------------------}
|
|
PROCEDURE TView.PutPeerViewPtr (Var S: TStream; P: PView);
|
|
PROCEDURE TView.PutPeerViewPtr (Var S: TStream; P: PView);
|
|
-VAR Index: Integer;
|
|
|
|
|
|
+VAR Index: SmallInt;
|
|
BEGIN
|
|
BEGIN
|
|
If (P = Nil) OR (OwnerGroup = Nil) Then Index := 0 { Return zero index }
|
|
If (P = Nil) OR (OwnerGroup = Nil) Then Index := 0 { Return zero index }
|
|
Else Index := OwnerGroup^.IndexOf(P); { Return view index }
|
|
Else Index := OwnerGroup^.IndexOf(P); { Return view index }
|
|
@@ -2738,7 +2738,7 @@ const
|
|
var
|
|
var
|
|
FrameMask : array[0..MaxViewWidth-1] of Byte;
|
|
FrameMask : array[0..MaxViewWidth-1] of Byte;
|
|
ColorMask : word;
|
|
ColorMask : word;
|
|
- i,j,k : {Sw_ lo and hi are used !! }integer;
|
|
|
|
|
|
+ i,j,k : {Sw_ lo and hi are used !! }SmallInt;
|
|
CurrView : PView;
|
|
CurrView : PView;
|
|
p : Pchar;
|
|
p : Pchar;
|
|
begin
|
|
begin
|
|
@@ -3035,7 +3035,7 @@ END;
|
|
{ scrollbar id set to zero. }
|
|
{ scrollbar id set to zero. }
|
|
{---------------------------------------------------------------------------}
|
|
{---------------------------------------------------------------------------}
|
|
CONSTRUCTOR TScrollBar.Load (Var S: TStream);
|
|
CONSTRUCTOR TScrollBar.Load (Var S: TStream);
|
|
-VAR i: Integer;
|
|
|
|
|
|
+VAR i: SmallInt;
|
|
BEGIN
|
|
BEGIN
|
|
Inherited Load(S); { Call ancestor }
|
|
Inherited Load(S); { Call ancestor }
|
|
S.Read(i, SizeOf(i)); Value:=i; { Read current value }
|
|
S.Read(i, SizeOf(i)); Value:=i; { Read current value }
|
|
@@ -3139,7 +3139,7 @@ END;
|
|
{ routine and resetting the ofGrafVersion flag after the call. }
|
|
{ routine and resetting the ofGrafVersion flag after the call. }
|
|
{---------------------------------------------------------------------------}
|
|
{---------------------------------------------------------------------------}
|
|
PROCEDURE TScrollBar.Store (Var S: TStream);
|
|
PROCEDURE TScrollBar.Store (Var S: TStream);
|
|
-VAR i: Integer;
|
|
|
|
|
|
+VAR i: SmallInt;
|
|
BEGIN
|
|
BEGIN
|
|
TView.Store(S); { TView.Store called }
|
|
TView.Store(S); { TView.Store called }
|
|
i:=Value;S.Write(i, SizeOf(i)); { Write current value }
|
|
i:=Value;S.Write(i, SizeOf(i)); { Write current value }
|
|
@@ -3354,7 +3354,7 @@ END;
|
|
{ as the new graphical scroller views. }
|
|
{ as the new graphical scroller views. }
|
|
{---------------------------------------------------------------------------}
|
|
{---------------------------------------------------------------------------}
|
|
CONSTRUCTOR TScroller.Load (Var S: TStream);
|
|
CONSTRUCTOR TScroller.Load (Var S: TStream);
|
|
-VAR i: Integer;
|
|
|
|
|
|
+VAR i: SmallInt;
|
|
BEGIN
|
|
BEGIN
|
|
Inherited Load(S); { Call ancestor }
|
|
Inherited Load(S); { Call ancestor }
|
|
GetPeerViewPtr(S, HScrollBar); { Load horz scrollbar }
|
|
GetPeerViewPtr(S, HScrollBar); { Load horz scrollbar }
|
|
@@ -3413,7 +3413,7 @@ END;
|
|
{ The scroller is saved to the stream compatable with the old TV object. }
|
|
{ The scroller is saved to the stream compatable with the old TV object. }
|
|
{---------------------------------------------------------------------------}
|
|
{---------------------------------------------------------------------------}
|
|
PROCEDURE TScroller.Store (Var S: TStream);
|
|
PROCEDURE TScroller.Store (Var S: TStream);
|
|
-VAR i: Integer;
|
|
|
|
|
|
+VAR i: SmallInt;
|
|
BEGIN
|
|
BEGIN
|
|
TView.Store(S); { Call TView explicitly }
|
|
TView.Store(S); { Call TView explicitly }
|
|
PutPeerViewPtr(S, HScrollBar); { Store horz bar }
|
|
PutPeerViewPtr(S, HScrollBar); { Store horz bar }
|
|
@@ -3813,7 +3813,7 @@ END;
|
|
{ although a frame view is read for compatability it is disposed of. }
|
|
{ although a frame view is read for compatability it is disposed of. }
|
|
{---------------------------------------------------------------------------}
|
|
{---------------------------------------------------------------------------}
|
|
CONSTRUCTOR TWindow.Load (Var S: TStream);
|
|
CONSTRUCTOR TWindow.Load (Var S: TStream);
|
|
-VAR I: Integer;
|
|
|
|
|
|
+VAR I: SmallInt;
|
|
BEGIN
|
|
BEGIN
|
|
Inherited Load(S); { Call ancestor }
|
|
Inherited Load(S); { Call ancestor }
|
|
S.Read(Flags, SizeOf(Flags)); { Read window flags }
|
|
S.Read(Flags, SizeOf(Flags)); { Read window flags }
|
|
@@ -3945,7 +3945,7 @@ END;
|
|
{ routine and resetting the ofGrafVersion flag after the call. }
|
|
{ routine and resetting the ofGrafVersion flag after the call. }
|
|
{---------------------------------------------------------------------------}
|
|
{---------------------------------------------------------------------------}
|
|
PROCEDURE TWindow.Store (Var S: TStream);
|
|
PROCEDURE TWindow.Store (Var S: TStream);
|
|
-VAR i: Integer;
|
|
|
|
|
|
+VAR i: SmallInt;
|
|
BEGIN
|
|
BEGIN
|
|
TGroup.Store(S); { Call group store }
|
|
TGroup.Store(S); { Call group store }
|
|
S.Write(Flags, SizeOf(Flags)); { Write window flags }
|
|
S.Write(Flags, SizeOf(Flags)); { Write window flags }
|