浏览代码

Don't reduce small wizard image area down to 55x55 anymore; use the full 58x58 size.

Jordan Russell 8 月之前
父节点
当前提交
859bd0a376
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 3 4
      Projects/Src/Setup.WizardForm.pas
  2. 1 0
      whatsnew.htm

+ 3 - 4
Projects/Src/Setup.WizardForm.pas

@@ -855,15 +855,14 @@ begin
         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 }

+ 1 - 0
whatsnew.htm

@@ -93,6 +93,7 @@ For conditions of distribution and use, see <a href="files/is/license.txt">LICEN
   <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>