mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-29 11:00:23 +02:00
* fix for #40069 add swapdimensions
This commit is contained in:
parent
69eebe4c0c
commit
bfb904640a
@ -171,6 +171,7 @@ type
|
|||||||
function IsZero : Boolean;
|
function IsZero : Boolean;
|
||||||
function Subtract(const asz : TSizeF): TSizeF;
|
function Subtract(const asz : TSizeF): TSizeF;
|
||||||
function Subtract(const asz : TSize): TSizeF;
|
function Subtract(const asz : TSize): TSizeF;
|
||||||
|
function SwapDimensions:TSizeF;
|
||||||
|
|
||||||
function Scale (afactor:Single) : TSizeF;
|
function Scale (afactor:Single) : TSizeF;
|
||||||
function Ceiling : TSize;
|
function Ceiling : TSize;
|
||||||
@ -889,6 +890,12 @@ begin
|
|||||||
result.cy:=cy-asz.cy;
|
result.cy:=cy-asz.cy;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function TSizeF.SwapDimensions:TSizeF;
|
||||||
|
begin
|
||||||
|
result.cx:=cy;
|
||||||
|
result.cy:=cx;
|
||||||
|
end;
|
||||||
|
|
||||||
function TSizeF.Subtract(const asz: TSize): TSizeF;
|
function TSizeF.Subtract(const asz: TSize): TSizeF;
|
||||||
begin
|
begin
|
||||||
result.cx:=cx-asz.cx;
|
result.cx:=cx-asz.cx;
|
||||||
|
Loading…
Reference in New Issue
Block a user