Merge pull request #8 from edgbla/master
* Права создаваемых файлов изменены с 777 на 664;
This commit is contained in:
12
umain.pas
12
umain.pas
@@ -278,7 +278,7 @@ begin
|
|||||||
FreeTIM(TIM);
|
FreeTIM(TIM);
|
||||||
Image^.Free;
|
Image^.Free;
|
||||||
Dispose(Image);
|
Dispose(Image);
|
||||||
{$IFDEF Linux}FpChmod(dlgSavePNG.FileName, &777);{$IFEND}
|
{$IFDEF Linux}FpChmod(dlgSavePNG.FileName, &664);{$IFEND}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfrmMain.btnShowClutClick(Sender: TObject);
|
procedure TfrmMain.btnShowClutClick(Sender: TObject);
|
||||||
@@ -442,7 +442,7 @@ begin
|
|||||||
|
|
||||||
Path := Path + FormatPngName(FName, I - 1, BIT_MODE, 0);
|
Path := Path + FormatPngName(FName, I - 1, BIT_MODE, 0);
|
||||||
SaveImage(Path, Image, TIMisIndexed(TIM));
|
SaveImage(Path, Image, TIMisIndexed(TIM));
|
||||||
{$IFDEF Linux}FpChmod(Path, &777);{$IFEND}
|
{$IFDEF Linux}FpChmod(Path, &664);{$IFEND}
|
||||||
Image^.Free;
|
Image^.Free;
|
||||||
Image^ := nil;
|
Image^ := nil;
|
||||||
|
|
||||||
@@ -493,7 +493,7 @@ begin
|
|||||||
|
|
||||||
Path := Path + FormatPngName(FName, I - 1, BIT_MODE, 0);
|
Path := Path + FormatPngName(FName, I - 1, BIT_MODE, 0);
|
||||||
SaveImage(Path, Image, TIMisIndexed(TIM));
|
SaveImage(Path, Image, TIMisIndexed(TIM));
|
||||||
{$IFDEF Linux}FpChmod(Path, &777);{$IFEND}
|
{$IFDEF Linux}FpChmod(Path, &664);{$IFEND}
|
||||||
Image^.Free;
|
Image^.Free;
|
||||||
Image^ := nil;
|
Image^ := nil;
|
||||||
|
|
||||||
@@ -518,7 +518,7 @@ begin
|
|||||||
|
|
||||||
TIM := SelectedTimInMode;
|
TIM := SelectedTimInMode;
|
||||||
SaveTimToFile(dlgSaveFile.FileName, TIM);
|
SaveTimToFile(dlgSaveFile.FileName, TIM);
|
||||||
{$IFDEF Linux}FpChmod(dlgSaveFile.FileName, &777);{$IFEND}
|
{$IFDEF Linux}FpChmod(dlgSaveFile.FileName, &664);{$IFEND}
|
||||||
FreeTIM(TIM);
|
FreeTIM(TIM);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@@ -557,7 +557,7 @@ begin
|
|||||||
TIM := LoadTimFromFile(FName, OFFSET, IsImage, SIZE);
|
TIM := LoadTimFromFile(FName, OFFSET, IsImage, SIZE);
|
||||||
Path := Path + FormatFileName(FName, I - 1, BIT_MODE, MAGIC);
|
Path := Path + FormatFileName(FName, I - 1, BIT_MODE, MAGIC);
|
||||||
SaveTimToFile(Path, TIM);
|
SaveTimToFile(Path, TIM);
|
||||||
{$IFDEF Linux}FpChmod(Path, &777);{$IFEND}
|
{$IFDEF Linux}FpChmod(Path, &664);{$IFEND}
|
||||||
FreeTIM(TIM);
|
FreeTIM(TIM);
|
||||||
|
|
||||||
pbProgress.Position := I;
|
pbProgress.Position := I;
|
||||||
@@ -599,7 +599,7 @@ begin
|
|||||||
TIM := LoadTimFromFile(FName, OFFSET, IsImage, SIZE);
|
TIM := LoadTimFromFile(FName, OFFSET, IsImage, SIZE);
|
||||||
Path := Path + FormatFileName(FName, I - 1, BIT_MODE, MAGIC);
|
Path := Path + FormatFileName(FName, I - 1, BIT_MODE, MAGIC);
|
||||||
SaveTimToFile(Path, TIM);
|
SaveTimToFile(Path, TIM);
|
||||||
{$IFDEF Linux}FpChmod(Path, &777);{$IFEND}
|
{$IFDEF Linux}FpChmod(Path, &664);{$IFEND}
|
||||||
FreeTIM(TIM);
|
FreeTIM(TIM);
|
||||||
|
|
||||||
pbProgress.Position := I;
|
pbProgress.Position := I;
|
||||||
|
|||||||
Reference in New Issue
Block a user