Skip to content

Commit

Permalink
Don't reduce small wizard image area down to 55x55 anymore; use the f…
Browse files Browse the repository at this point in the history
…ull 58x58 size.
  • Loading branch information
jordanrussell authored Jan 4, 2025
1 parent 974b258 commit 859bd0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Projects/Src/Setup.WizardForm.pas
Original file line number Diff line number Diff line change
Expand Up @@ -855,15 +855,14 @@ constructor TWizardForm.Create(AOwner: TComponent);
58x58 when the user is purposely using a smaller-than-default image
(such as 55x55 or 32x32) and WizardImageStretch=yes.
- Otherwise, it's unclear what size/shape the user prefers for the
control. Set the control size to 55x55, because that has historically
been the size of the (smallest) default images. }
control. Keep the default control size. }
var NewWidth := TBitmap(WizardSmallImages[0]).Width;
var NewHeight := TBitmap(WizardSmallImages[0]).Height;
if (WizardSmallImages.Count > 1) or
(NewWidth > 58) or
(NewHeight > 58) then begin
NewWidth := 55;
NewHeight := 55;
NewWidth := 58;
NewHeight := 58;
end;

{ Scale the new width and height }
Expand Down
1 change: 1 addition & 0 deletions whatsnew.htm
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
<li>Replaced all remaining use of MD5 and SHA-1 hashes with SHA-256 hashes, without removing the MD5 and SHA-1 Pascal Scripting and ISPP support functions.</li>
<li>At long last, Setup's wizard window now shows a thumbnail image on its taskbar button, and animates correctly when minimized and restored. As part of this work, support for the long-deprecated <tt>[Setup]</tt> section directive <tt>WindowVisible</tt>, which was used to enable a 1990s-style blue gradient background behind the wizard window, has been dropped.</li>
<li>The aspect ratio of Setup's large and small wizard images (as specified by <tt>WizardImageFile</tt> and <tt>WizardSmallImageFile</tt>) is now maintained when the window is scaled. Previously, depending on the font and font size used, they could have appeared horizontally stretched or squished.</li>
<li>The size of the small wizard image area has been extended to 58&times;58 (at standard DPI with the default font). Previous versions used a non-square 55&times;58 size, which made the default image look slightly stretched.</li>
<li>When disk spanning is enabled and Setup cannot find the needed disk slice file (e.g., <tt>setup-2.bin</tt>) in the source directory, it no longer automatically searches for it in a directory named <tt>DISKx</tt> one level up, where <tt>x</tt> is the disk number. Though consistent with old installers from the 16-bit era, this behavior wasn't documented.</li>
<li>The New Script Wizard now sets <tt>UninstallDisplayIcon</tt> when an .exe is chosen as the main executable file.</li>
<li>Merged the Inno Setup Preprocessor documentation into the main documentation instead of being separate.</li>
Expand Down

0 comments on commit 859bd0a

Please sign in to comment.