8147413: api/java_awt/Image/MultiResolutionImage/index.html\#MultiResolutionRenderingHints[test_VALUE_RESOLUTION_VARIANT_BASE] started to fail
authorjdv
Tue, 02 Feb 2016 11:50:24 +0530
changeset 35986 dce986488bf2
parent 35985 3005aefa003f
child 35987 aea5d5d0ec6d
8147413: api/java_awt/Image/MultiResolutionImage/index.html\#MultiResolutionRenderingHints[test_VALUE_RESOLUTION_VARIANT_BASE] started to fail Reviewed-by: alexsch, flar
jdk/src/java.desktop/share/classes/sun/java2d/SunGraphics2D.java
--- a/jdk/src/java.desktop/share/classes/sun/java2d/SunGraphics2D.java	Mon Feb 01 15:39:02 2016 +0530
+++ b/jdk/src/java.desktop/share/classes/sun/java2d/SunGraphics2D.java	Tue Feb 02 11:50:24 2016 +0530
@@ -3118,8 +3118,7 @@
                 invalidateTransform();
             }
             return result;
-        } else if (resolutionVariantHint != SunHints.INTVAL_RESOLUTION_VARIANT_BASE
-                   && (img instanceof MultiResolutionImage)) {
+        } else if (img instanceof MultiResolutionImage) {
             // get scaled destination image size
 
             int width = img.getWidth(observer);