mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
+2
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user