jdk/src/macosx/classes/com/apple/laf/AquaPainter.java
changeset 24532 24831bd48764
parent 24151 a558c7acb1ad
--- a/jdk/src/macosx/classes/com/apple/laf/AquaPainter.java	Wed Apr 23 21:11:25 2014 +0400
+++ b/jdk/src/macosx/classes/com/apple/laf/AquaPainter.java	Thu Apr 24 16:15:08 2014 +0400
@@ -174,11 +174,7 @@
                                                         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));