From 77972ddb1139055345f5f1a6c5aeddbf56fca704 Mon Sep 17 00:00:00 2001 From: Maxim Kropotov Date: Mon, 17 Apr 2017 20:49:02 +0300 Subject: [PATCH] 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 --- .../arrangement/animation/ArrangementAnimationPanel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/application/options/codeStyle/arrangement/animation/ArrangementAnimationPanel.java b/platform/lang-impl/src/com/intellij/application/options/codeStyle/arrangement/animation/ArrangementAnimationPanel.java index 2afef0d4d131..a45f50c3ccfc 100644 --- a/platform/lang-impl/src/com/intellij/application/options/codeStyle/arrangement/animation/ArrangementAnimationPanel.java +++ b/platform/lang-impl/src/com/intellij/application/options/codeStyle/arrangement/animation/ArrangementAnimationPanel.java @@ -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);