src/macosx/classes/com/apple/laf/AquaPainter.java

Print this page

        

@@ -172,15 +172,11 @@
             final ImageCache cache = ImageCache.getInstance();
             final AquaPixelsKey key = new AquaPixelsKey(config, imgW, imgH,
                                                         bounds, controlState);
             Image img = cache.getImage(key);
             if (img == null) {
-
-                Image baseImage = createImage(imgX, imgY, imgW, imgH, bounds,
-                                              control, controlState);
-
-                img = new MultiResolutionBufferedImage(baseImage,
+                img = new MultiResolutionCachedImage(imgW, imgH,
                         (rvWidth, rvHeight) -> createImage(imgX, imgY,
                          rvWidth, rvHeight, bounds, control, controlState));
 
                 if (!controlState.is(JRSUIConstants.Animating.YES)) {
                     cache.setImage(key, img);