FIX: gThumbSize should be used in zoomInSmallPreview() in ThumbFileView

This commit is contained in:
rich2014 2026-01-23 00:28:12 +08:00
commit 17c092540d

View file

@ -499,7 +499,7 @@ var
procedure zoomInSmallPreview( var width: Integer; var height: Integer );
begin
// if the thumbnail grid cell is already small, don't zoom in
if (aRect.Width<gIconsSize) or (aRect.Height<gIconsSize) then
if (gThumbSize.Width<gIconsSize) or (gThumbSize.Height<gIconsSize) then
Exit;
// if the generated preview is large enough, don't zoom in