Free image and project options fixes.
This commit is contained in:
18
tim2view.lpi
18
tim2view.lpi
@@ -23,8 +23,7 @@
|
||||
<UseVersionInfo Value="True"/>
|
||||
<AutoIncrementBuild Value="True"/>
|
||||
<MajorVersionNr Value="1"/>
|
||||
<RevisionNr Value="75"/>
|
||||
<BuildNr Value="4"/>
|
||||
<RevisionNr Value="78"/>
|
||||
<StringTable CompanyName="Lab 313" FileDescription="The best TIMs tool ever!:)" ProductVersion=""/>
|
||||
</VersionInfo>
|
||||
<BuildModes Count="6">
|
||||
@@ -38,7 +37,7 @@
|
||||
</Target>
|
||||
<SearchPaths>
|
||||
<IncludeFiles Value="$(ProjOutDir);bgrabitmap"/>
|
||||
<OtherUnitFiles Value="lazpaint\bgrabitmap"/>
|
||||
<OtherUnitFiles Value="bgrabitmap"/>
|
||||
<UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
|
||||
</SearchPaths>
|
||||
<Parsing>
|
||||
@@ -82,7 +81,7 @@
|
||||
</Target>
|
||||
<SearchPaths>
|
||||
<IncludeFiles Value="$(ProjOutDir);bgrabitmap"/>
|
||||
<OtherUnitFiles Value="lazpaint\bgrabitmap"/>
|
||||
<OtherUnitFiles Value="bgrabitmap"/>
|
||||
<UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
|
||||
</SearchPaths>
|
||||
<Parsing>
|
||||
@@ -126,7 +125,7 @@
|
||||
</Target>
|
||||
<SearchPaths>
|
||||
<IncludeFiles Value="$(ProjOutDir);bgrabitmap"/>
|
||||
<OtherUnitFiles Value="lazpaint\bgrabitmap"/>
|
||||
<OtherUnitFiles Value="bgrabitmap"/>
|
||||
<UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
|
||||
</SearchPaths>
|
||||
<Parsing>
|
||||
@@ -170,7 +169,7 @@
|
||||
</Target>
|
||||
<SearchPaths>
|
||||
<IncludeFiles Value="$(ProjOutDir);bgrabitmap"/>
|
||||
<OtherUnitFiles Value="lazpaint\bgrabitmap"/>
|
||||
<OtherUnitFiles Value="bgrabitmap"/>
|
||||
<UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
|
||||
</SearchPaths>
|
||||
<Parsing>
|
||||
@@ -214,7 +213,7 @@
|
||||
</Target>
|
||||
<SearchPaths>
|
||||
<IncludeFiles Value="$(ProjOutDir);bgrabitmap"/>
|
||||
<OtherUnitFiles Value="lazpaint\bgrabitmap"/>
|
||||
<OtherUnitFiles Value="bgrabitmap"/>
|
||||
<UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
|
||||
</SearchPaths>
|
||||
<Parsing>
|
||||
@@ -225,7 +224,7 @@
|
||||
<CodeGeneration>
|
||||
<SmartLinkUnit Value="True"/>
|
||||
<TargetCPU Value="i386"/>
|
||||
<TargetOS Value="win32"/>
|
||||
<TargetOS Value="darwin"/>
|
||||
<Optimizations>
|
||||
<OptimizationLevel Value="3"/>
|
||||
</Optimizations>
|
||||
@@ -351,7 +350,7 @@
|
||||
</Target>
|
||||
<SearchPaths>
|
||||
<IncludeFiles Value="$(ProjOutDir);bgrabitmap"/>
|
||||
<OtherUnitFiles Value="lazpaint\bgrabitmap"/>
|
||||
<OtherUnitFiles Value="bgrabitmap"/>
|
||||
<UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
|
||||
</SearchPaths>
|
||||
<Parsing>
|
||||
@@ -369,7 +368,6 @@
|
||||
<Linking>
|
||||
<Debugging>
|
||||
<DebugInfoType Value="dsDwarf2Set"/>
|
||||
<UseHeaptrc Value="True"/>
|
||||
<UseExternalDbgSyms Value="True"/>
|
||||
</Debugging>
|
||||
<Options>
|
||||
|
||||
12
tim2view.lps
12
tim2view.lps
@@ -3,7 +3,7 @@
|
||||
<ProjectSession>
|
||||
<PathDelim Value="\"/>
|
||||
<Version Value="9"/>
|
||||
<BuildModes Active="Debug"/>
|
||||
<BuildModes Active="Win Release x86"/>
|
||||
<Units Count="15">
|
||||
<Unit0>
|
||||
<Filename Value="tim2view.lpr"/>
|
||||
@@ -23,10 +23,11 @@
|
||||
<HasResources Value="True"/>
|
||||
<ResourceBaseClass Value="Form"/>
|
||||
<UnitName Value="umain"/>
|
||||
<IsVisibleTab Value="True"/>
|
||||
<EditorIndex Value="0"/>
|
||||
<WindowIndex Value="0"/>
|
||||
<TopLine Value="890"/>
|
||||
<CursorPos X="50" Y="901"/>
|
||||
<TopLine Value="235"/>
|
||||
<CursorPos X="49" Y="244"/>
|
||||
<UsageCount Value="816"/>
|
||||
<Loaded Value="True"/>
|
||||
<LoadedDesigner Value="True"/>
|
||||
@@ -50,7 +51,6 @@
|
||||
<Filename Value="ucommon.pas"/>
|
||||
<IsPartOfProject Value="True"/>
|
||||
<UnitName Value="ucommon"/>
|
||||
<IsVisibleTab Value="True"/>
|
||||
<EditorIndex Value="3"/>
|
||||
<WindowIndex Value="0"/>
|
||||
<TopLine Value="1"/>
|
||||
@@ -159,8 +159,8 @@
|
||||
<EditorIndex Value="6"/>
|
||||
<WindowIndex Value="0"/>
|
||||
<TopLine Value="7"/>
|
||||
<CursorPos X="69" Y="16"/>
|
||||
<UsageCount Value="56"/>
|
||||
<CursorPos X="20" Y="16"/>
|
||||
<UsageCount Value="57"/>
|
||||
<Loaded Value="True"/>
|
||||
</Unit14>
|
||||
</Units>
|
||||
|
||||
BIN
tim2view.res
BIN
tim2view.res
Binary file not shown.
@@ -246,6 +246,8 @@ begin
|
||||
dlgSavePNG.FileName := FormatPngName(SelectedScanResult.ScanFile, TIM^.dwTimNumber, SelectedTimInfo.BitMode, cbbCLUT.ItemIndex);
|
||||
if not dlgSavePNG.Execute then Exit;
|
||||
|
||||
New(Image);
|
||||
Image := nil;
|
||||
Tim2Png(TIM, cbbCLUT.ItemIndex, Image, cbbTranspMode.ItemIndex, True);
|
||||
SaveImage(dlgSavePNG.FileName, Image, TIMisIndexed(TIM));
|
||||
FreeTIM(TIM);
|
||||
@@ -414,7 +416,7 @@ begin
|
||||
Tim2Png(TIM, cbbCLUT.ItemIndex, Image, cbbTranspMode.ItemIndex, False);
|
||||
|
||||
Path := Path + FormatPngName(FName, I - 1, BIT_MODE, 0);
|
||||
SaveImage(Path, Image, TIMisIndexed(TIM));
|
||||
SaveImage(Path, Image, False);
|
||||
{$IFDEF Linux}FpChmod(Path, &777);{$IFEND}
|
||||
Image^.Free;
|
||||
Image^ := nil;
|
||||
|
||||
Reference in New Issue
Block a user