mirror of
https://github.com/moparisthebest/Simba
synced 2024-11-26 03:02:15 -05:00
Fixed.
git-svn-id: http://www.villavu.com/repositories/merlijn/mufasa@99 3f818213-9676-44b0-a9b4-5e4c4e03d09d
This commit is contained in:
parent
0f2c4af46f
commit
33b416a939
@ -10,7 +10,7 @@ Sender.AddFunction(@psWriteln,'procedure writeln(s : string);');
|
|||||||
|
|
||||||
{ DTM }
|
{ DTM }
|
||||||
|
|
||||||
Sender.AddFunction(@ps_StringFromDTM, 'function StringFromDTM(DTMString: String): Integer;');
|
Sender.AddFunction(@ps_StringFromDTM, 'function DTMFromString(DTMString: String): Integer;');
|
||||||
Sender.AddFunction(@ps_FreeDTM, 'procedure FreeDTM(DTM: Integer);');
|
Sender.AddFunction(@ps_FreeDTM, 'procedure FreeDTM(DTM: Integer);');
|
||||||
Sender.AddFunction(@FindDTM, 'function FindDTM(DTM: Integer; var x, y: Integer; x1, y1, x2, y2: Integer): Boolean;');
|
Sender.AddFunction(@FindDTM, 'function FindDTM(DTM: Integer; var x, y: Integer; x1, y1, x2, y2: Integer): Boolean;');
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ begin
|
|||||||
MFiles := TMFiles.Create;
|
MFiles := TMFiles.Create;
|
||||||
MFinder := TMFinder.Create(Self);
|
MFinder := TMFinder.Create(Self);
|
||||||
MBitmaps := TMBitmaps.Create(self);
|
MBitmaps := TMBitmaps.Create(self);
|
||||||
MDTM := MDTM.Create(self);
|
MDTM := TMDTM.Create(self);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
destructor TClient.Destroy;
|
destructor TClient.Destroy;
|
||||||
|
@ -9,8 +9,6 @@ uses
|
|||||||
|
|
||||||
type
|
type
|
||||||
TMDTM = class(TObject)
|
TMDTM = class(TObject)
|
||||||
constructor Create(Owner: TObject);
|
|
||||||
destructor Destroy; override;
|
|
||||||
|
|
||||||
function AddDTM(d: TDTM): Integer;
|
function AddDTM(d: TDTM): Integer;
|
||||||
function AddpDTM(d: pDTM): Integer;
|
function AddpDTM(d: pDTM): Integer;
|
||||||
@ -32,6 +30,8 @@ type
|
|||||||
function pFindDTM(DTM: pDTM; var x, y: Integer; x1, y1, x2, y2:
|
function pFindDTM(DTM: pDTM; var x, y: Integer; x1, y1, x2, y2:
|
||||||
Integer): Boolean;
|
Integer): Boolean;
|
||||||
|
|
||||||
|
constructor Create(Owner: TObject);
|
||||||
|
destructor Destroy; override;
|
||||||
private
|
private
|
||||||
|
|
||||||
Client: TObject;
|
Client: TObject;
|
||||||
@ -75,7 +75,7 @@ uses
|
|||||||
Client, dtmutil, paszlib;
|
Client, dtmutil, paszlib;
|
||||||
|
|
||||||
type
|
type
|
||||||
TBufferByteArray = Array[0..524288] of Byte;
|
TBufferByteArray = Array[0..524287] of Byte;
|
||||||
PBufferByteArray = ^TBufferByteArray;
|
PBufferByteArray = ^TBufferByteArray;
|
||||||
|
|
||||||
constructor TMDTM.Create(Owner: TObject);
|
constructor TMDTM.Create(Owner: TObject);
|
||||||
@ -107,7 +107,7 @@ function TMDTM.StringToDTM(S: String): pDTM;
|
|||||||
var
|
var
|
||||||
b: PBufferByteArray;
|
b: PBufferByteArray;
|
||||||
Source : String;
|
Source : String;
|
||||||
DestLen : LongWord;
|
DestLen : longword;
|
||||||
i,ii,c : integer;
|
i,ii,c : integer;
|
||||||
begin
|
begin
|
||||||
SetLength(Result.p,0);
|
SetLength(Result.p,0);
|
||||||
|
Loading…
Reference in New Issue
Block a user