Browse Source

Avoid unnecessary icon upscaling.

pull/188/head v2.2.3-rc2
weisj 5 years ago
parent
commit
22c7266d31
  1. 2
      property-loader/src/main/java/com/github/weisj/darklaf/icons/DarkSVGIcon.java

2
property-loader/src/main/java/com/github/weisj/darklaf/icons/DarkSVGIcon.java

@ -134,7 +134,7 @@ public class DarkSVGIcon implements DerivableIcon<DarkSVGIcon>, RotateIcon, Seri
boolean rotationChanged = false;
if (!loadedWithExtraScale) {
loadedWithExtraScale = !isExactRotation(rotation);
rotationChanged = true;
rotationChanged = loadedWithExtraScale;
}
updateCache(ensureLoaded() || rotationChanged, c);
}

Loading…
Cancel
Save