jdk/src/java.desktop/share/classes/sun/awt/image/BufferedImageGraphicsConfig.java
--- a/jdk/src/java.desktop/share/classes/sun/awt/image/BufferedImageGraphicsConfig.java Wed Oct 07 19:47:35 2015 +0300
+++ b/jdk/src/java.desktop/share/classes/sun/awt/image/BufferedImageGraphicsConfig.java Mon Oct 12 15:28:03 2015 +0300
@@ -67,7 +67,6 @@
GraphicsDevice gd;
ColorModel model;
Raster raster;
- int width, height;
public BufferedImageGraphicsConfig(BufferedImage bufImg, Component comp) {
if (comp == null) {
@@ -78,8 +77,6 @@
}
this.model = bufImg.getColorModel();
this.raster = bufImg.getRaster().createCompatibleWritableRaster(1, 1);
- this.width = bufImg.getWidth();
- this.height = bufImg.getHeight();
}
/**
@@ -168,6 +165,6 @@
}
public Rectangle getBounds() {
- return new Rectangle(0, 0, width, height);
+ return new Rectangle(0, 0, Integer.MAX_VALUE, Integer.MAX_VALUE);
}
}