< prev index next >

src/java.desktop/unix/classes/sun/awt/X11GraphicsConfig.java

Print this page

        

*** 47,56 **** --- 47,57 ---- import sun.java2d.DisposerRecord; import sun.java2d.SurfaceData; import sun.java2d.loops.RenderLoops; import sun.java2d.loops.SurfaceType; import sun.java2d.loops.CompositeType; + import sun.java2d.pipe.Region; import sun.java2d.x11.X11SurfaceData; import sun.awt.image.OffScreenImage; import sun.awt.image.SunVolatileImage; import sun.awt.image.SurfaceManager;
*** 263,277 **** public int getScale() { return getDevice().getScaleFactor(); } public int scaleUp(int x) { ! return x * getScale(); } public int scaleDown(int x) { ! return x / getScale(); } /** * * Returns a Transform that can be composed with the default Transform --- 264,278 ---- public int getScale() { return getDevice().getScaleFactor(); } public int scaleUp(int x) { ! return Region.clipRound(x * (double)getScale()); } public int scaleDown(int x) { ! return Region.clipRound(x / (double)getScale()); } /** * * Returns a Transform that can be composed with the default Transform
< prev index next >