aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/com/sun/opengl/impl
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2008-12-23 05:32:57 +0000
committerKenneth Russel <[email protected]>2008-12-23 05:32:57 +0000
commit00b865b520d91cee6eda142cfcdf1fad4ab5a8c5 (patch)
treec94a5232634726d1a4acdf206c381b12a4ec1299 /src/classes/com/sun/opengl/impl
parent040200121e35aced836985c085699ef6c9df0719 (diff)
Removed notion of wrapped windows from the NativeWindow interface,
leaving such handling up to toolkits such as Newt. Updated NativeWindow documentation. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1827 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes/com/sun/opengl/impl')
-rw-r--r--src/classes/com/sun/opengl/impl/NativeWindowFactoryImpl.java11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/classes/com/sun/opengl/impl/NativeWindowFactoryImpl.java b/src/classes/com/sun/opengl/impl/NativeWindowFactoryImpl.java
index 97d7c0e30..296ea3a44 100644
--- a/src/classes/com/sun/opengl/impl/NativeWindowFactoryImpl.java
+++ b/src/classes/com/sun/opengl/impl/NativeWindowFactoryImpl.java
@@ -43,17 +43,12 @@ public class NativeWindowFactoryImpl extends NativeWindowFactory {
// This subclass of NativeWindowFactory handles the case of
// NativeWindows and AWT Components being passed in
protected NativeWindow getNativeWindowImpl(Object winObj) throws IllegalArgumentException {
- if (null==winObj) {
+ if (null == winObj) {
throw new IllegalArgumentException("winObj is null");
}
if (winObj instanceof NativeWindow) {
- NativeWindow nw = (NativeWindow) winObj;
- Object wrappedWindow = nw.getWrappedWindow();
- if (wrappedWindow == null) {
- // Use the NativeWindow directly
- return nw;
- }
- winObj = wrappedWindow;
+ // Use the NativeWindow directly
+ return (NativeWindow) winObj;
}
if (GLReflection.isAWTComponent(winObj)) {