summaryrefslogtreecommitdiffstats
path: root/src/nativewindow
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-11-12 16:40:44 +0100
committerSven Gothel <[email protected]>2011-11-12 16:40:44 +0100
commitdaccd28a562c2211f0ab6f30a5eac02ffef2945a (patch)
tree0d212ba184486aa7b10e1621f4bc6df6790b260d /src/nativewindow
parent8a16d590fe2c739badbabe4906cbe9d60b20e2b9 (diff)
OSXUtil: Remove (ClassLoader) dependency on JAWT_DrawingSurfaceInfo (dirty hack)
.. need to move the attach/detach surface layer NIO methods to a AWT OSX class.
Diffstat (limited to 'src/nativewindow')
-rw-r--r--src/nativewindow/classes/jogamp/nativewindow/macosx/OSXUtil.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nativewindow/classes/jogamp/nativewindow/macosx/OSXUtil.java b/src/nativewindow/classes/jogamp/nativewindow/macosx/OSXUtil.java
index 1739288a7..4ed46596a 100644
--- a/src/nativewindow/classes/jogamp/nativewindow/macosx/OSXUtil.java
+++ b/src/nativewindow/classes/jogamp/nativewindow/macosx/OSXUtil.java
@@ -7,7 +7,6 @@ import javax.media.nativewindow.util.Point;
import jogamp.nativewindow.Debug;
import jogamp.nativewindow.NWJNILibLoader;
-import jogamp.nativewindow.jawt.JAWT_DrawingSurfaceInfo;
public class OSXUtil {
private static boolean isInit = false;
@@ -72,7 +71,10 @@ public class OSXUtil {
}
DestroyCALayer0(caLayer);
}
- public static boolean AttachJAWTSurfaceLayer(JAWT_DrawingSurfaceInfo dsi, long caLayer) {
+ public static boolean AttachJAWTSurfaceLayer(Object jawtDrawingSurfaceInfo, long caLayer) {
+ final jogamp.nativewindow.jawt.JAWT_DrawingSurfaceInfo dsi =
+ (jogamp.nativewindow.jawt.JAWT_DrawingSurfaceInfo) jawtDrawingSurfaceInfo;
+
if(0==caLayer) {
throw new IllegalArgumentException("caLayer 0x"+Long.toHexString(caLayer));
}