src/share/classes/sun/awt/image/MultiResolutionToolkitImage.java

Print this page

        

*** 64,73 **** --- 64,81 ---- public static ImageObserver getResolutionVariantObserver( final Image image, final ImageObserver observer, final int imgWidth, final int imgHeight, final int rvWidth, final int rvHeight) { + return getResolutionVariantObserver(image, observer, + imgWidth, imgHeight, rvWidth, rvHeight, false); + } + + public static ImageObserver getResolutionVariantObserver( + final Image image, final ImageObserver observer, + final int imgWidth, final int imgHeight, + final int rvWidth, final int rvHeight, boolean concatenateInfo) { if (observer == null) { return null; }
*** 90,99 **** --- 98,112 ---- if ((flags & BITS_INFO) != 0) { x /= 2; y /= 2; } + if(concatenateInfo){ + flags &= ((ToolkitImage) image). + getImageRep().check(null); + } + return observer.imageUpdate( image, flags, x, y, width, height); }; ObserverCache.INSTANCE.put(image, o);