From daccd28a562c2211f0ab6f30a5eac02ffef2945a Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 12 Nov 2011 16:40:44 +0100 Subject: OSXUtil: Remove (ClassLoader) dependency on JAWT_DrawingSurfaceInfo (dirty hack) .. need to move the attach/detach surface layer NIO methods to a AWT OSX class. --- src/nativewindow/classes/jogamp/nativewindow/macosx/OSXUtil.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/nativewindow') 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)); } -- cgit v1.2.3