src/macosx/classes/sun/awt/CGraphicsConfig.java

Print this page

        

*** 51,61 **** private static native Rectangle2D nativeGetBounds(int screen); @Override public Rectangle getBounds() { ! final Rectangle2D nativeBounds = nativeGetBounds(device.getCoreGraphicsScreen()); return nativeBounds.getBounds(); // does integer rounding } @Override public ColorModel getColorModel() { --- 51,61 ---- private static native Rectangle2D nativeGetBounds(int screen); @Override public Rectangle getBounds() { ! final Rectangle2D nativeBounds = nativeGetBounds(device.getCGDisplayID()); return nativeBounds.getBounds(); // does integer rounding } @Override public ColorModel getColorModel() {