mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
UIUtil.createImageForGraphics: do not create HiDPI images for non-HiDPI graphics
This commit is contained in:
@@ -1786,7 +1786,7 @@ public class UIUtil {
|
||||
}
|
||||
|
||||
public static BufferedImage createImageForGraphics(Graphics2D g, int width, int height, int type) {
|
||||
if (DetectRetinaKit.isMacRetina(g)) {
|
||||
if (isRetina(g)) {
|
||||
return RetinaImage.create(width, height, type);
|
||||
}
|
||||
//noinspection UndesirableClassUsage
|
||||
|
||||
Reference in New Issue
Block a user