Skip to content

Commit

Permalink
Only use/include largest sizes of the default wizard images because t…
Browse files Browse the repository at this point in the history
…hey still look great when downsized. Reduces the .res from 244 kb to 132 kb.
  • Loading branch information
martijnlaan committed Jan 4, 2025
1 parent 3f2dbba commit f46ea42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified Projects/Res/ISCmplr.images.res
Binary file not shown.
4 changes: 2 additions & 2 deletions Projects/Src/Compiler.SetupCompiler.pas
Original file line number Diff line number Diff line change
Expand Up @@ -7642,7 +7642,7 @@ procedure TSetupCompiler.Compile;
end;
WizardImages := CreateMemoryStreamsFromFiles('WizardImageFile', WizardImageFile)
end else
WizardImages := CreateMemoryStreamsFromResources(['WizardImage'], ['100', '150']);
WizardImages := CreateMemoryStreamsFromResources(['WizardImage'], ['150']);
LineNumber := SetupDirectiveLines[ssWizardSmallImageFile];
AddStatus(Format(SCompilerStatusReadingFile, ['WizardSmallImageFile']));
if WizardSmallImageFile <> '' then begin
Expand All @@ -7652,7 +7652,7 @@ procedure TSetupCompiler.Compile;
end;
WizardSmallImages := CreateMemoryStreamsFromFiles('WizardSmallImage', WizardSmallImageFile)
end else
WizardSmallImages := CreateMemoryStreamsFromResources(['WizardSmallImage'], ['100', '125', '150', '175', '200', '225', '250']);
WizardSmallImages := CreateMemoryStreamsFromResources(['WizardSmallImage'], ['250']);
LineNumber := 0;

{ Prepare Setup executable & signed uninstaller data }
Expand Down

0 comments on commit f46ea42

Please sign in to comment.