Merge pull request #8 from edgbla/master

* Права создаваемых файлов изменены с 777 на 664;
This commit is contained in:
Lab 313
2016-08-09 13:57:46 +03:00
committed by GitHub

View File

@@ -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;