mirror of
https://github.com/moparisthebest/Simba
synced 2024-12-25 00:39:04 -05:00
(18:01:16) @BenLand100: but having the boolean variable, like i say, is borderline
(18:01:45) @BenLand100: its cool and all. but it you should probably implement another constructor that is false by default (18:01:51) @BenLand100: just saying Here you go ;-). git-svn-id: http://www.villavu.com/repositories/merlijn/mufasa@454 3f818213-9676-44b0-a9b4-5e4c4e03d09d
This commit is contained in:
parent
af6d0e398c
commit
8e69439614
@ -65,7 +65,7 @@ interface
|
|||||||
| Currently this uses the pointer as-is, but it might be needed to make a local copy... }
|
| Currently this uses the pointer as-is, but it might be needed to make a local copy... }
|
||||||
TRawTarget = class(TTarget)
|
TRawTarget = class(TTarget)
|
||||||
public
|
public
|
||||||
constructor Create(rgb: prgb32; w,h: integer; CopyData : boolean);
|
constructor Create(rgb: prgb32; w,h: integer; CopyData : boolean = false);
|
||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
|
|
||||||
procedure GetTargetDimensions(var w, h: integer); override;
|
procedure GetTargetDimensions(var w, h: integer); override;
|
||||||
@ -344,8 +344,8 @@ function TIOManager_Abstract.GetColor(x,y : integer) : TColor; begin result:= im
|
|||||||
function TIOManager_Abstract.ReturnData(xs,ys,width,height: integer): TRetData; begin result:= image.ReturnData(xs,ys,width,height); end;
|
function TIOManager_Abstract.ReturnData(xs,ys,width,height: integer): TRetData; begin result:= image.ReturnData(xs,ys,width,height); end;
|
||||||
procedure TIOManager_Abstract.FreeReturnData; begin image.freeReturnData(); end;
|
procedure TIOManager_Abstract.FreeReturnData; begin image.freeReturnData(); end;
|
||||||
|
|
||||||
function TIOManager_Abstract.SetTarget(ArrPtr: PRGB32; Size: TPoint): integer; begin SetImageTarget(TRawTarget.Create(ArrPtr,Size.X,Size.Y,false)); end;
|
function TIOManager_Abstract.SetTarget(ArrPtr: PRGB32; Size: TPoint): integer; begin SetImageTarget(TRawTarget.Create(ArrPtr,Size.X,Size.Y)); end;
|
||||||
function TIOManager_Abstract.SetTarget(bmp : TMufasaBitmap) : integer; begin SetImageTarget(TRawTarget.Create(bmp.FData,bmp.width,bmp.height,false)); end;
|
function TIOManager_Abstract.SetTarget(bmp : TMufasaBitmap) : integer; begin SetImageTarget(TRawTarget.Create(bmp.FData,bmp.width,bmp.height)); end;
|
||||||
function TIOManager_Abstract.SetTarget(name: string; initargs: pointer): integer;
|
function TIOManager_Abstract.SetTarget(name: string; initargs: pointer): integer;
|
||||||
var
|
var
|
||||||
client: TEIOS_Client;
|
client: TEIOS_Client;
|
||||||
@ -521,7 +521,7 @@ end;
|
|||||||
|
|
||||||
//***implementation*** TRawTarget
|
//***implementation*** TRawTarget
|
||||||
|
|
||||||
constructor TRawTarget.Create(rgb: prgb32; w,h: integer; CopyData : boolean);
|
constructor TRawTarget.Create(rgb: prgb32; w,h: integer; CopyData : boolean = false);
|
||||||
begin
|
begin
|
||||||
inherited Create;
|
inherited Create;
|
||||||
self.w:= w;
|
self.w:= w;
|
||||||
|
Loading…
Reference in New Issue
Block a user