src/share/classes/sun/awt/image/MultiResolutionToolkitImage.java
Print this page
@@ -64,10 +64,18 @@
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,10 +98,15 @@
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);