From: Niki Roo Date: Thu, 7 May 2020 17:31:10 +0000 (+0200) Subject: UIHelper: fix for nikiroo-utils update X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=52cf007fe65ba95880024ff41767e55f29d8e210;p=fanfix-swing.git UIHelper: fix for nikiroo-utils update --- diff --git a/src/be/nikiroo/fanfix_swing/gui/utils/UiHelper.java b/src/be/nikiroo/fanfix_swing/gui/utils/UiHelper.java index 2da67e2f..6a296d80 100644 --- a/src/be/nikiroo/fanfix_swing/gui/utils/UiHelper.java +++ b/src/be/nikiroo/fanfix_swing/gui/utils/UiHelper.java @@ -173,9 +173,8 @@ public class UiHelper { List resizedImages = new ArrayList(); for (int size : new Integer[] { 16, 20, 64, 400 }) { - resizedImages.add( - ImageUtilsAwt.scaleImage(new Dimension(size, size), - image, -1, zoomSnapWidth)); + resizedImages.add(ImageUtilsAwt.scaleImage(image, + new Dimension(size, size), -1, zoomSnapWidth)); } return resizedImages;