src/macosx/classes/sun/awt/CGraphicsDevice.java
Print this page
@@ -31,13 +31,11 @@
import java.awt.AWTPermission;
import java.awt.DisplayMode;
import sun.java2d.opengl.CGLGraphicsConfig;
-import sun.awt.FullScreenCapable;
-
-public class CGraphicsDevice extends GraphicsDevice {
+public final class CGraphicsDevice extends GraphicsDevice {
// CoreGraphics display ID
private final int displayID;
// Array of all GraphicsConfig instances for this device
@@ -106,15 +104,10 @@
public double getYResolution() {
return nativeGetYResolution(displayID);
}
- public int getScreenResolution() {
- // TODO: report non-72 value when HiDPI is turned on
- return 72;
- }
-
private static native double nativeGetXResolution(int displayID);
private static native double nativeGetYResolution(int displayID);
/**
* Enters full-screen mode, or returns to windowed mode.