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

Print this page

        

*** 23,37 **** * questions. */ package sun.awt; import java.awt.GraphicsConfiguration; import java.awt.GraphicsDevice; import java.awt.Window; - import java.awt.AWTPermission; - import java.awt.DisplayMode; import java.util.Objects; import sun.java2d.opengl.CGLGraphicsConfig; public final class CGraphicsDevice extends GraphicsDevice { --- 23,37 ---- * questions. */ package sun.awt; + import java.awt.AWTPermission; + import java.awt.DisplayMode; import java.awt.GraphicsConfiguration; import java.awt.GraphicsDevice; import java.awt.Window; import java.util.Objects; import sun.java2d.opengl.CGLGraphicsConfig; public final class CGraphicsDevice extends GraphicsDevice {
*** 56,68 **** CGLGraphicsConfig.getConfig(this, 0) }; } /** * @return CoreGraphics display id. */ ! public int getCoreGraphicsScreen() { return displayID; } /** * Return a list of all configurations. --- 56,71 ---- CGLGraphicsConfig.getConfig(this, 0) }; } /** + * Returns CGDirectDisplayID, which is the same id as @"NSScreenNumber" in + * NSScreen. + * * @return CoreGraphics display id. */ ! public int getCGDisplayID() { return displayID; } /** * Return a list of all configurations.