aboutsummaryrefslogtreecommitdiffstats
path: root/src/nativewindow/classes/jogamp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-07-21 12:32:49 +0200
committerSven Gothel <[email protected]>2011-07-21 12:32:49 +0200
commitc1fb37cdaff46d23717eac402abaea82e2a503f1 (patch)
treee3156dce7b1aa000997bfcb81ec3d26bfe9e717b /src/nativewindow/classes/jogamp
parentafd46dbeca16a87baba61ae5bfd7767984d66197 (diff)
Use GlueGen Platform's OSType enum
Diffstat (limited to 'src/nativewindow/classes/jogamp')
-rw-r--r--src/nativewindow/classes/jogamp/nativewindow/NativeWindowFactoryImpl.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/nativewindow/classes/jogamp/nativewindow/NativeWindowFactoryImpl.java b/src/nativewindow/classes/jogamp/nativewindow/NativeWindowFactoryImpl.java
index 3db8f32d2..e3322ac45 100644
--- a/src/nativewindow/classes/jogamp/nativewindow/NativeWindowFactoryImpl.java
+++ b/src/nativewindow/classes/jogamp/nativewindow/NativeWindowFactoryImpl.java
@@ -32,6 +32,7 @@
package jogamp.nativewindow;
+import com.jogamp.common.os.Platform;
import com.jogamp.common.util.*;
import java.lang.reflect.*;
@@ -73,21 +74,21 @@ public class NativeWindowFactoryImpl extends NativeWindowFactory {
private NativeWindow getAWTNativeWindow(Object winObj, AbstractGraphicsConfiguration config) {
if (nativeWindowConstructor == null) {
try {
- String osType = getNativeWindowType(true);
+ String windowingType = getNativeWindowType(true);
String windowClassName = null;
// We break compile-time dependencies on the AWT here to
// make it easier to run this code on mobile devices
- if (osType.equals(TYPE_WINDOWS)) {
+ if (windowingType.equals(TYPE_WINDOWS)) {
windowClassName = "jogamp.nativewindow.jawt.windows.WindowsJAWTWindow";
- } else if (osType.equals(TYPE_MACOSX)) {
+ } else if (windowingType.equals(TYPE_MACOSX)) {
windowClassName = "jogamp.nativewindow.jawt.macosx.MacOSXJAWTWindow";
- } else if (osType.equals(TYPE_X11)) {
+ } else if (windowingType.equals(TYPE_X11)) {
// Assume Linux, Solaris, etc. Should probably test for these explicitly.
windowClassName = "jogamp.nativewindow.jawt.x11.X11JAWTWindow";
} else {
- throw new IllegalArgumentException("OS " + getNativeOSName(false) + " not yet supported");
+ throw new IllegalArgumentException("OS " + Platform.getOS() + " not yet supported");
}
nativeWindowConstructor = ReflectionUtil.getConstructor(