< prev index next >

src/java.desktop/share/classes/javax/swing/plaf/nimbus/AbstractRegionPainter.java

Print this page

        

*** 638,651 **** JComponent c, int w, int h, Object[] extendedCacheKeys) { // check if we can scale to the requested size Dimension canvas = ctx.canvasSize; Insets insets = ctx.stretchingInsets; - if (insets.left + insets.right > w || insets.top + insets.bottom > h) { - return; - } - if (w <= (canvas.width * ctx.maxHorizontalScaleFactor) && h <= (canvas.height * ctx.maxVerticalScaleFactor)) { // get image at canvas size VolatileImage img = getImage(g.getDeviceConfiguration(), c, canvas.width, canvas.height, extendedCacheKeys); if (img != null) { // calculate dst inserts --- 638,647 ----
< prev index next >