Browse Source

SVGIcon: Pass component as image observer when painting the off-screen buffer.

pull/235/head
weisj 4 years ago
parent
commit
37ed8e158b
No known key found for this signature in database
GPG Key ID: 31124CB75461DA2A
  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

@ -271,7 +271,7 @@ public class DarkSVGIcon implements DerivableIcon<DarkSVGIcon>, RotateIcon, Seri
if (dr) {
getSVGIcon().paintIcon(c, g, 0, 0);
} else {
g2.drawImage(image, 0, 0, null);
g2.drawImage(image, 0, 0, c);
}
g2.scale(1 / sx, 1 / sy);
g2.translate(-x, -y);

Loading…
Cancel
Save