IDEA-138025 Massive rendering issues on OSX

This commit is contained in:
Vassiliy.Kudryashov
2015-03-24 15:20:13 +03:00
parent 73c491363d
commit 9c4659852f
@@ -425,9 +425,8 @@ public class IconUtil {
final BufferedImage img = UIUtil.createImage(source.getIconWidth(), source.getIconHeight(), Transparency.TRANSLUCENT);
int[] rgba = new int[4];
float[] hsb = new float[3];
boolean hiDPI = RetinaImage.isAppleHiDPIScaledImage(image);
for (int y = 0; y < image.getHeight() * (hiDPI ? 2 : 1); y++) {
for (int x = 0; x < image.getWidth() * (hiDPI ? 2 : 1); x++) {
for (int y = 0; y < image.getRaster().getHeight(); y++) {
for (int x = 0; x < image.getRaster().getWidth(); x++) {
image.getRaster().getPixel(x, y, rgba);
if (rgba[3] != 0) {
Color.RGBtoHSB(rgba[0], rgba[1], rgba[2], hsb);