rearrange code ui: animation panel is 2x higher than row on macOS HiDPI. Since image size is taken from component (scaled already), doesn't seem to be necessary to create a scaled image

This commit is contained in:
Maxim Kropotov
2017-04-17 22:15:12 +03:00
parent b141feea45
commit 77972ddb11
@@ -65,8 +65,8 @@ public class ArrangementAnimationPanel extends JPanel {
//myContent.setDoubleBuffered(false);
myContent.setBounds(0, 0, size.width, size.height);
myContent.validate();
myImage = UIUtil.createImage(myContent, size.width, size.height, BufferedImage.TYPE_INT_RGB);
assert myImage != null;
//noinspection UndesirableClassUsage
myImage = new BufferedImage(size.width, size.height, BufferedImage.TYPE_INT_RGB);
final Graphics2D graphics = myImage.createGraphics();
UISettings.setupAntialiasing(graphics);
graphics.setClip(0, 0, size.width, size.height);