--- old/src/java.desktop/windows/classes/sun/java2d/windows/GDIWindowSurfaceData.java 2017-11-03 14:34:38.428817892 +0530 +++ new/src/java.desktop/windows/classes/sun/java2d/windows/GDIWindowSurfaceData.java 2017-11-03 14:34:38.256731892 +0530 @@ -302,8 +302,8 @@ public Rectangle getBounds() { Rectangle r = peer.getBounds(); r.x = r.y = 0; - r.width = (int) Math.ceil(r.width * scaleX); - r.height = (int) Math.ceil(r.height * scaleY); + r.width = Region.clipRound(r.width * scaleX); + r.height = Region.clipRound(r.height * scaleY); return r; }