mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-02 06:22:39 +02:00
+ Merged revisions 118 119
git-svn-id: branches/fixes_2_0@121 -
This commit is contained in:
parent
1cfc23e1ac
commit
bb24820bda
@ -531,12 +531,15 @@ begin
|
|||||||
end
|
end
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
OldPixels:=PFPIntegerArray(FData);
|
if Assigned(FData) then
|
||||||
GetMem(FData,FWidth*FHeight*SizeOf(TFPColor));
|
begin
|
||||||
for r:=0 to FHeight-1 do
|
OldPixels:=PFPIntegerArray(FData);
|
||||||
for c:=0 to FWidth-1 do
|
GetMem(FData,FWidth*FHeight*SizeOf(TFPColor));
|
||||||
Colors[c,r]:=FPalette.Color[OldPixels^[r*FWidth+c]];
|
for r:=0 to FHeight-1 do
|
||||||
FreeMem(OldPixels);
|
for c:=0 to FWidth-1 do
|
||||||
|
Colors[c,r]:=FPalette.Color[OldPixels^[r*FWidth+c]];
|
||||||
|
FreeMem(OldPixels);
|
||||||
|
end;
|
||||||
FPalette.Free;
|
FPalette.Free;
|
||||||
FPalette:=nil;
|
FPalette:=nil;
|
||||||
end;
|
end;
|
||||||
|
@ -534,6 +534,9 @@ begin
|
|||||||
begin
|
begin
|
||||||
sIdent:=Trim(Copy(sLine, 1, j - 1));
|
sIdent:=Trim(Copy(sLine, 1, j - 1));
|
||||||
sValue:=Trim(Copy(sLine, j + 1, Length(sLine) - j));
|
sValue:=Trim(Copy(sLine, j + 1, Length(sLine) - j));
|
||||||
|
J:=Length(sValue);
|
||||||
|
If (J>0) and (sValue[1]='"') and (sValue[J]='"') then
|
||||||
|
sValue:=Copy(sValue,2,J-2);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
oSection.KeyList.Add(TIniFileKey.Create(sIdent, sValue));
|
oSection.KeyList.Add(TIniFileKey.Create(sIdent, sValue));
|
||||||
|
Loading…
Reference in New Issue
Block a user