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

Print this page

        

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