mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-138025 Massive rendering issues on OSX
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user