aboutsummaryrefslogtreecommitdiffstats
path: root/src/newt/classes
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2009-06-03 22:51:34 +0000
committerSven Gothel <[email protected]>2009-06-03 22:51:34 +0000
commit0c88b63fc45602d4ceabda377d03a6b9a4b289db (patch)
treef760fab5e7cd23cf7f2eebd21e85b608765f1afa /src/newt/classes
parentaf23607f257b01777d52c93f8908912d1ae8c8bb (diff)
Add MacOSX support / tested on one thread
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1923 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/newt/classes')
-rwxr-xr-xsrc/newt/classes/com/sun/javafx/newt/macosx/MacDisplay.java3
-rwxr-xr-xsrc/newt/classes/com/sun/javafx/newt/windows/WindowsDisplay.java3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/newt/classes/com/sun/javafx/newt/macosx/MacDisplay.java b/src/newt/classes/com/sun/javafx/newt/macosx/MacDisplay.java
index f0d624c4b..29b7151f4 100755
--- a/src/newt/classes/com/sun/javafx/newt/macosx/MacDisplay.java
+++ b/src/newt/classes/com/sun/javafx/newt/macosx/MacDisplay.java
@@ -35,13 +35,14 @@ package com.sun.javafx.newt.macosx;
import com.sun.javafx.newt.*;
import javax.media.nativewindow.*;
+import javax.media.nativewindow.macosx.*;
public class MacDisplay extends Display {
public MacDisplay() {
}
protected void createNative() {
- aDevice = new DefaultGraphicsDevice(NativeWindowFactory.TYPE_MACOSX);
+ aDevice = new MacOSXGraphicsDevice();
}
protected void closeNative() { }
diff --git a/src/newt/classes/com/sun/javafx/newt/windows/WindowsDisplay.java b/src/newt/classes/com/sun/javafx/newt/windows/WindowsDisplay.java
index 69e868f37..436101a35 100755
--- a/src/newt/classes/com/sun/javafx/newt/windows/WindowsDisplay.java
+++ b/src/newt/classes/com/sun/javafx/newt/windows/WindowsDisplay.java
@@ -35,13 +35,14 @@ package com.sun.javafx.newt.windows;
import com.sun.javafx.newt.*;
import javax.media.nativewindow.*;
+import javax.media.nativewindow.windows.*;
public class WindowsDisplay extends Display {
public WindowsDisplay() {
}
protected void createNative() {
- aDevice = new DefaultGraphicsDevice(NativeWindowFactory.TYPE_WINDOWS);
+ aDevice = new WindowsGraphicsDevice();
}
protected void closeNative() { }