mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 07:39:22 +02:00
Remove redundant code in GraphType by Luiz Americo (0010200)
git-svn-id: trunk@12909 -
This commit is contained in:
parent
cc2180a5b0
commit
8f6cfd5bea
@ -854,20 +854,11 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
function TRawImageDescription.AsString: string;
|
function TRawImageDescription.AsString: string;
|
||||||
|
|
||||||
function BoolStr(b: boolean): string;
|
|
||||||
begin
|
|
||||||
if b then
|
|
||||||
Result:='true'
|
|
||||||
else
|
|
||||||
Result:='false';
|
|
||||||
end;
|
|
||||||
|
|
||||||
begin
|
begin
|
||||||
Result:=
|
Result:=
|
||||||
' Format='+RawImageColorFormatNames[Format]
|
' Format='+RawImageColorFormatNames[Format]
|
||||||
+' HasPalette->'+BoolStr(PaletteColorCount <> 0)
|
+' HasPalette->'+BoolToStr(PaletteColorCount <> 0, True)
|
||||||
+' HasMask->'+BoolStr(PaletteColorCount <> 0)
|
+' HasMask->'+BoolToStr(PaletteColorCount <> 0, True)
|
||||||
+' Depth='+IntToStr(Depth)
|
+' Depth='+IntToStr(Depth)
|
||||||
+' Width='+IntToStr(Width)
|
+' Width='+IntToStr(Width)
|
||||||
+' Height='+IntToStr(Height)
|
+' Height='+IntToStr(Height)
|
||||||
@ -1173,11 +1164,11 @@ begin
|
|||||||
(PaletteSize = AImage.PaletteSize);
|
(PaletteSize = AImage.PaletteSize);
|
||||||
|
|
||||||
if Result then
|
if Result then
|
||||||
Result := Result and CompareMem(Data, AImage.Data, DataSize);
|
Result := CompareMem(Data, AImage.Data, DataSize);
|
||||||
if Result then
|
if Result then
|
||||||
Result := Result and CompareMem(Mask, AImage.Mask, MaskSize);
|
Result := CompareMem(Mask, AImage.Mask, MaskSize);
|
||||||
if Result then
|
if Result then
|
||||||
Result := Result and CompareMem(Palette, AImage.Palette, PaletteSize);
|
Result := CompareMem(Palette, AImage.Palette, PaletteSize);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TRawImage.ReleaseData;
|
procedure TRawImage.ReleaseData;
|
||||||
|
Loading…
Reference in New Issue
Block a user