diff options
author | Sven Gothel <[email protected]> | 2001-06-18 23:20:46 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2001-06-18 23:20:46 +0000 |
commit | cc7376ee5616743cdd7b7a5c711f054b32ae8e4e (patch) | |
tree | 1550b5fd8630667151fe30e74811abb6a45792ea /CNativeCode/GLDrawableFactory_X11_SunJDK13.c | |
parent | 8512ae5ab8a75fad8a75aec0b6e04e3fcd1d2c6f (diff) |
2.8.0.0 pre-release cvs only
Diffstat (limited to 'CNativeCode/GLDrawableFactory_X11_SunJDK13.c')
-rw-r--r-- | CNativeCode/GLDrawableFactory_X11_SunJDK13.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/CNativeCode/GLDrawableFactory_X11_SunJDK13.c b/CNativeCode/GLDrawableFactory_X11_SunJDK13.c index 5d41051..a15e132 100644 --- a/CNativeCode/GLDrawableFactory_X11_SunJDK13.c +++ b/CNativeCode/GLDrawableFactory_X11_SunJDK13.c @@ -5,11 +5,10 @@ JNIEXPORT jlong JNICALL Java_gl4java_drawable_X11SunJDK13GLDrawableFactory_glXChooseVisualID
(JNIEnv *env,
jclass unused,
- jint screen,
- jlong display,
jobject capsObj, jboolean verbose)
{
- Display *disp = (Display *) ( (PointerHolder)display );
+ Display *disp = NULL;
+ int screen = 0;
XVisualInfo * visual=NULL;
int visualAttribList[32];
@@ -34,6 +33,8 @@ Java_gl4java_drawable_X11SunJDK13GLDrawableFactory_glXChooseVisualID If running without this ugly thing,
the derived SimpleGLAnimApplet1 get's an X11 async reply
if the thing is initialized by the applet's init method !
+
+ jdk 1.4 does not support the getDisplay() method anyway ..
*/
disp = XOpenDisplay( NULL );
screen = DefaultScreen( disp );
|