diff options
Diffstat (limited to 'src/solaris/native/sun/java2d/opengl/GLXSurfaceData.c')
-rw-r--r-- | src/solaris/native/sun/java2d/opengl/GLXSurfaceData.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/solaris/native/sun/java2d/opengl/GLXSurfaceData.c b/src/solaris/native/sun/java2d/opengl/GLXSurfaceData.c index 83e548017..a8c303f94 100644 --- a/src/solaris/native/sun/java2d/opengl/GLXSurfaceData.c +++ b/src/solaris/native/sun/java2d/opengl/GLXSurfaceData.c @@ -1,5 +1,5 @@ /* - * Copyright 2003-2007 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 2003-2008 Sun Microsystems, Inc. All Rights Reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -47,6 +47,9 @@ extern DisposeFunc OGLSD_Dispose; extern struct MComponentPeerIDs mComponentPeerIDs; +extern void + OGLSD_SetNativeDimensions(JNIEnv *env, OGLSDOps *oglsdo, jint w, jint h); + jboolean surfaceCreationFailed = JNI_FALSE; #endif /* !HEADLESS */ @@ -460,6 +463,8 @@ Java_sun_java2d_opengl_GLXSurfaceData_initPbuffer glxsdo->drawable = pbuffer; glxsdo->xdrawable = 0; + OGLSD_SetNativeDimensions(env, oglsdo, width, height); + return JNI_TRUE; } |